{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/Owsiak/Dropbox/Vasquez-Owsiak CMPS 2017/II RR 2021/Final/peaceful dyads replication.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}12 Jul 2021, 11:40:37

{com}. clear

. cd "/Users/Owsiak/Dropbox/Vasquez-Owsiak CMPS 2017/II RR 2021/Final/"
{res}/Users/Owsiak/Dropbox/Vasquez-Owsiak CMPS 2017/II RR 2021/Final

{com}. do "/var/folders/85/m7mmkq454hscrr59tsws9fq00000gn/T//SD76216.000000"
{txt}
{com}. //Replication files for Owsiak, Andrew P., and John A. Vasquez. 2021. Peaceful Dyads: A Territorial Perspective. International Interactions.
. 
. use "peaceful dyads replication.dta", replace
{txt}
{com}. 
. //Table 1. Text only. No replication.
. 
. //Table 2. 
. firthlogit rel_neverwar2 rel_anyterrmids2 rel_alwaysjtdem2 if rel_everpolrel2==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res: -169.1531}
rescale:{col 16}penalized log likelihood = {res: -169.1531}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res: -169.1531}  
Iteration 1:{space 3}penalized log likelihood = {res:-132.19408}  
Iteration 2:{space 3}penalized log likelihood = {res:-111.05882}  
Iteration 3:{space 3}penalized log likelihood = {res:-110.81138}  
Iteration 4:{space 3}penalized log likelihood = {res:-110.80657}  
Iteration 5:{space 3}penalized log likelihood = {res:-110.80656}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}     1,022
{txt}{col 49}Wald chi2({res}2{txt}){col 67}= {res}     89.45
{txt}Penalized log likelihood = {res}-110.80656{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar2{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids2 {c |}{col 18}{res}{space 2}-3.755132{col 30}{space 2} .3999594{col 41}{space 1}   -9.39{col 50}{space 3}0.000{col 58}{space 4}-4.539038{col 71}{space 3}-2.971227
{txt}rel_alwaysjtdem2 {c |}{col 18}{res}{space 2}  .729845{col 30}{space 2} 1.506466{col 41}{space 1}    0.48{col 50}{space 3}0.628{col 58}{space 4}-2.222774{col 71}{space 3} 3.682464
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 4.596275{col 30}{space 2} .3430049{col 41}{space 1}   13.40{col 50}{space 3}0.000{col 58}{space 4} 3.923997{col 71}{space 3} 5.268552
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar2 rel_anyterrmids2 rel_alwaysjtdem2 rel_meancinc2 rel_meantrade2 if rel_everpolrel2==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-145.13485}
rescale:{col 16}penalized log likelihood = {res:-145.13485}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-145.13485}  
Iteration 1:{space 3}penalized log likelihood = {res:-114.80169}  
Iteration 2:{space 3}penalized log likelihood = {res: -91.51286}  
Iteration 3:{space 3}penalized log likelihood = {res:-91.102663}  
Iteration 4:{space 3}penalized log likelihood = {res:-91.100191}  
Iteration 5:{space 3}penalized log likelihood = {res: -91.10019}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       978
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}     81.26
{txt}Penalized log likelihood = {res} -91.10019{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar2{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids2 {c |}{col 18}{res}{space 2}-3.918864{col 30}{space 2} .4491661{col 41}{space 1}   -8.72{col 50}{space 3}0.000{col 58}{space 4}-4.799213{col 71}{space 3}-3.038515
{txt}rel_alwaysjtdem2 {c |}{col 18}{res}{space 2} .7979261{col 30}{space 2} 1.560705{col 41}{space 1}    0.51{col 50}{space 3}0.609{col 58}{space 4}   -2.261{col 71}{space 3} 3.856852
{txt}{space 3}rel_meancinc2 {c |}{col 18}{res}{space 2}  .818792{col 30}{space 2} .8225585{col 41}{space 1}    1.00{col 50}{space 3}0.320{col 58}{space 4} -.793393{col 71}{space 3} 2.430977
{txt}{space 2}rel_meantrade2 {c |}{col 18}{res}{space 2}-.0000917{col 30}{space 2} .0000529{col 41}{space 1}   -1.73{col 50}{space 3}0.083{col 58}{space 4}-.0001955{col 71}{space 3} .0000121
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 4.618157{col 30}{space 2} .3723001{col 41}{space 1}   12.40{col 50}{space 3}0.000{col 58}{space 4} 3.888462{col 71}{space 3} 5.347852
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar2 rel_anyterrmids2 rel_alwaysjtdem2 if rel_anymidsall==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-208.89284}
rescale:{col 16}penalized log likelihood = {res:-208.89284}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-208.89284}  
Iteration 1:{space 3}penalized log likelihood = {res: -201.3722}  
Iteration 2:{space 3}penalized log likelihood = {res:-156.22169}  
Iteration 3:{space 3}penalized log likelihood = {res:-155.67403}  
Iteration 4:{space 3}penalized log likelihood = {res:-155.67122}  
Iteration 5:{space 3}penalized log likelihood = {res:-155.67122}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       760
{txt}{col 49}Wald chi2({res}2{txt}){col 67}= {res}     85.55
{txt}Penalized log likelihood = {res}-155.67122{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar2{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids2 {c |}{col 18}{res}{space 2}-2.930633{col 30}{space 2} .3185969{col 41}{space 1}   -9.20{col 50}{space 3}0.000{col 58}{space 4}-3.555072{col 71}{space 3}-2.306195
{txt}rel_alwaysjtdem2 {c |}{col 18}{res}{space 2} 1.244289{col 30}{space 2} 1.487514{col 41}{space 1}    0.84{col 50}{space 3}0.403{col 58}{space 4}-1.671185{col 71}{space 3} 4.159763
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 3.671386{col 30}{space 2} .2654582{col 41}{space 1}   13.83{col 50}{space 3}0.000{col 58}{space 4} 3.151098{col 71}{space 3} 4.191675
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar2 rel_anyterrmids2 rel_alwaysjtdem2 rel_meancinc2 rel_meantrade2 if rel_anymidsall==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res: -181.8202}
rescale:{col 16}penalized log likelihood = {res: -181.8202}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res: -181.8202}  
Iteration 1:{space 3}penalized log likelihood = {res:-140.94696}  
Iteration 2:{space 3}penalized log likelihood = {res:-134.42442}  
Iteration 3:{space 3}penalized log likelihood = {res:-134.38686}  
Iteration 4:{space 3}penalized log likelihood = {res:-134.38673}  
Iteration 5:{space 3}penalized log likelihood = {res:-134.38673}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       734
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}     77.79
{txt}Penalized log likelihood = {res}-134.38673{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar2{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids2 {c |}{col 18}{res}{space 2}-2.879152{col 30}{space 2} .3320987{col 41}{space 1}   -8.67{col 50}{space 3}0.000{col 58}{space 4}-3.530054{col 71}{space 3}-2.228251
{txt}rel_alwaysjtdem2 {c |}{col 18}{res}{space 2} 1.010512{col 30}{space 2} 1.394442{col 41}{space 1}    0.72{col 50}{space 3}0.469{col 58}{space 4}-1.722545{col 71}{space 3} 3.743568
{txt}{space 3}rel_meancinc2 {c |}{col 18}{res}{space 2} -.252629{col 30}{space 2} .5782882{col 41}{space 1}   -0.44{col 50}{space 3}0.662{col 58}{space 4}-1.386053{col 71}{space 3} .8807952
{txt}{space 2}rel_meantrade2 {c |}{col 18}{res}{space 2}-.0000645{col 30}{space 2} .0000567{col 41}{space 1}   -1.14{col 50}{space 3}0.256{col 58}{space 4}-.0001756{col 71}{space 3} .0000467
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 3.788182{col 30}{space 2} .3188485{col 41}{space 1}   11.88{col 50}{space 3}0.000{col 58}{space 4} 3.163251{col 71}{space 3} 4.413114
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. //Table 3.
. firthlogit rel_neverwar3 rel_anyterrmids3 rel_alwaysjtdem3 if rel_everpolrel3==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-64.748522}
rescale:{col 16}penalized log likelihood = {res:-64.748522}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-64.748522}  
Iteration 1:{space 3}penalized log likelihood = {res:-53.095316}  
Iteration 2:{space 3}penalized log likelihood = {res:-45.132154}  
Iteration 3:{space 3}penalized log likelihood = {res: -44.94252}  
Iteration 4:{space 3}penalized log likelihood = {res:-44.939269}  
Iteration 5:{space 3}penalized log likelihood = {res:-44.939269}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}     1,615
{txt}{col 49}Wald chi2({res}2{txt}){col 67}= {res}     38.03
{txt}Penalized log likelihood = {res}-44.939269{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar3{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids3 {c |}{col 18}{res}{space 2}-3.896377{col 30}{space 2}   .64748{col 41}{space 1}   -6.02{col 50}{space 3}0.000{col 58}{space 4}-5.165414{col 71}{space 3}-2.627339
{txt}rel_alwaysjtdem3 {c |}{col 18}{res}{space 2} 1.208233{col 30}{space 2}  1.46591{col 41}{space 1}    0.82{col 50}{space 3}0.410{col 58}{space 4}-1.664898{col 71}{space 3} 4.081363
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 5.861616{col 30}{space 2} .5352886{col 41}{space 1}   10.95{col 50}{space 3}0.000{col 58}{space 4}  4.81247{col 71}{space 3} 6.910762
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar3 rel_anyterrmids3 rel_alwaysjtdem3 rel_meancinc3 rel_meantrade3 if rel_everpolrel3==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-49.212281}
rescale:{col 16}penalized log likelihood = {res:-49.212281}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-49.212281}  (not concave)
Iteration 1:{space 3}penalized log likelihood = {res:-37.431319}  
Iteration 2:{space 3}penalized log likelihood = {res:-32.496011}  
Iteration 3:{space 3}penalized log likelihood = {res:-31.484439}  
Iteration 4:{space 3}penalized log likelihood = {res:-31.474569}  
Iteration 5:{space 3}penalized log likelihood = {res:-31.474536}  
Iteration 6:{space 3}penalized log likelihood = {res:-31.474536}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}     1,518
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}     37.16
{txt}Penalized log likelihood = {res}-31.474536{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar3{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids3 {c |}{col 18}{res}{space 2}-3.580664{col 30}{space 2} .7029433{col 41}{space 1}   -5.09{col 50}{space 3}0.000{col 58}{space 4}-4.958408{col 71}{space 3} -2.20292
{txt}rel_alwaysjtdem3 {c |}{col 18}{res}{space 2} .9379761{col 30}{space 2} 1.296871{col 41}{space 1}    0.72{col 50}{space 3}0.470{col 58}{space 4}-1.603845{col 71}{space 3} 3.479797
{txt}{space 3}rel_meancinc3 {c |}{col 18}{res}{space 2}-.5906929{col 30}{space 2} 1.340134{col 41}{space 1}   -0.44{col 50}{space 3}0.659{col 58}{space 4}-3.217308{col 71}{space 3} 2.035922
{txt}{space 2}rel_meantrade3 {c |}{col 18}{res}{space 2}-.0000139{col 30}{space 2} .0000154{col 41}{space 1}   -0.91{col 50}{space 3}0.365{col 58}{space 4}-.0000441{col 71}{space 3} .0000162
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 5.809653{col 30}{space 2} .5401887{col 41}{space 1}   10.75{col 50}{space 3}0.000{col 58}{space 4} 4.750902{col 71}{space 3} 6.868403
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar3 rel_anyterrmids3 rel_alwaysjtdem3 if rel_anymidsall==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-85.304693}
rescale:{col 16}penalized log likelihood = {res:-85.304693}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-85.304693}  
Iteration 1:{space 3}penalized log likelihood = {res:-69.683382}  
Iteration 2:{space 3}penalized log likelihood = {res:-62.327454}  
Iteration 3:{space 3}penalized log likelihood = {res:-62.042894}  
Iteration 4:{space 3}penalized log likelihood = {res:-62.038519}  
Iteration 5:{space 3}penalized log likelihood = {res:-62.038507}  
Iteration 6:{space 3}penalized log likelihood = {res:-62.038507}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       874
{txt}{col 49}Wald chi2({res}2{txt}){col 67}= {res}     31.23
{txt}Penalized log likelihood = {res}-62.038507{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar3{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids3 {c |}{col 18}{res}{space 2} -3.15908{col 30}{space 2} .6019085{col 41}{space 1}   -5.25{col 50}{space 3}0.000{col 58}{space 4}-4.338799{col 71}{space 3}-1.979361
{txt}rel_alwaysjtdem3 {c |}{col 18}{res}{space 2} 1.578724{col 30}{space 2} 1.462101{col 41}{space 1}    1.08{col 50}{space 3}0.280{col 58}{space 4} -1.28694{col 71}{space 3} 4.444389
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}  5.02922{col 30}{space 2} .5371669{col 41}{space 1}    9.36{col 50}{space 3}0.000{col 58}{space 4} 3.976392{col 71}{space 3} 6.082048
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar3 rel_anyterrmids3 rel_alwaysjtdem3 rel_meancinc3 rel_meantrade3 if rel_anymidsall==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-69.262511}
rescale:{col 16}penalized log likelihood = {res:-69.262511}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-69.262511}  
Iteration 1:{space 3}penalized log likelihood = {res:-61.889251}  
Iteration 2:{space 3}penalized log likelihood = {res:-49.564364}  (not concave)
Iteration 3:{space 3}penalized log likelihood = {res:-48.418344}  (not concave)
Iteration 4:{space 3}penalized log likelihood = {res:-48.363538}  
Iteration 5:{space 3}penalized log likelihood = {res:-48.099817}  
Iteration 6:{space 3}penalized log likelihood = {res:-48.097252}  
Iteration 7:{space 3}penalized log likelihood = {res:-48.097246}  
Iteration 8:{space 3}penalized log likelihood = {res:-48.097246}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       819
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}     30.51
{txt}Penalized log likelihood = {res}-48.097246{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar3{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids3 {c |}{col 18}{res}{space 2}-3.019693{col 30}{space 2} .5989273{col 41}{space 1}   -5.04{col 50}{space 3}0.000{col 58}{space 4}-4.193569{col 71}{space 3}-1.845817
{txt}rel_alwaysjtdem3 {c |}{col 18}{res}{space 2} 1.327429{col 30}{space 2} 1.319728{col 41}{space 1}    1.01{col 50}{space 3}0.314{col 58}{space 4}-1.259191{col 71}{space 3}  3.91405
{txt}{space 3}rel_meancinc3 {c |}{col 18}{res}{space 2} .1482647{col 30}{space 2} .9600478{col 41}{space 1}    0.15{col 50}{space 3}0.877{col 58}{space 4}-1.733394{col 71}{space 3} 2.029924
{txt}{space 2}rel_meantrade3 {c |}{col 18}{res}{space 2}-.0000123{col 30}{space 2} .0000135{col 41}{space 1}   -0.92{col 50}{space 3}0.360{col 58}{space 4}-.0000387{col 71}{space 3}  .000014
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 4.862394{col 30}{space 2} .5840867{col 41}{space 1}    8.32{col 50}{space 3}0.000{col 58}{space 4} 3.717605{col 71}{space 3} 6.007183
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. //Table 4. Note focus on peaceful dyads; for space, pull only second row of the crosstab (i.e., the peaceful dyads).
. tab rel_neverwar2 rel_anyterrmids2 if rel_everpolrel2==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}   rel_anyterrmids2
       ar2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}         8         33 {txt}{c |}{res}        41 
           {txt}{c |}{res}     19.51      80.49 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       903         78 {txt}{c |}{res}       981 
           {txt}{c |}{res}     92.05       7.95 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       911        111 {txt}{c |}{res}     1,022 
           {txt}{c |}{res}     89.14      10.86 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}213.8841  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res}117.2494  {txt} Pr = {res}0.000
{txt}
{com}. tab rel_neverwar3 rel_anyterrmids3 if rel_everpolrel3==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}   rel_anyterrmids3
       ar3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}         3          8 {txt}{c |}{res}        11 
           {txt}{c |}{res}     27.27      72.73 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}     1,538         66 {txt}{c |}{res}     1,604 
           {txt}{c |}{res}     95.89       4.11 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     1,541         74 {txt}{c |}{res}     1,615 
           {txt}{c |}{res}     95.42       4.58 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}117.6366  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 37.5474  {txt} Pr = {res}0.000
{txt}
{com}. tab rel_neverwar2 rel_anyterrmids2 if rel_anymidsall==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}   rel_anyterrmids2
       ar2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        14         47 {txt}{c |}{res}        61 
           {txt}{c |}{res}     22.95      77.05 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       598        101 {txt}{c |}{res}       699 
           {txt}{c |}{res}     85.55      14.45 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       612        148 {txt}{c |}{res}       760 
           {txt}{c |}{res}     80.53      19.47 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}140.2025  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res}106.2469  {txt} Pr = {res}0.000
{txt}
{com}. tab rel_neverwar3 rel_anyterrmids3 if rel_anymidsall==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}   rel_anyterrmids3
       ar3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}         3         15 {txt}{c |}{res}        18 
           {txt}{c |}{res}     16.67      83.33 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       749        107 {txt}{c |}{res}       856 
           {txt}{c |}{res}     87.50      12.50 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       752        122 {txt}{c |}{res}       874 
           {txt}{c |}{res}     86.04      13.96 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 73.6471  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 45.3172  {txt} Pr = {res}0.000
{txt}
{com}. 
. //Table 5. Note focus on peaceful dyads; for space, pull only second row of the crosstab (i.e., the peaceful dyads).
. tab rel_neverwar2 rel_alwaysjtdem2 if rel_everpolrel2==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |} Rel: Always jt dem in
rel_neverw {c |}         per 2
       ar2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        41          0 {txt}{c |}{res}        41 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       924         57 {txt}{c |}{res}       981 
           {txt}{c |}{res}     94.19       5.81 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       965         57 {txt}{c |}{res}     1,022 
           {txt}{c |}{res}     94.42       5.58 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.5230  {txt} Pr = {res}0.112
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  4.8058  {txt} Pr = {res}0.028
{txt}
{com}. tab rel_neverwar3 rel_alwaysjtdem3 if rel_everpolrel3==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |} Rel: Always jt dem in
rel_neverw {c |}         per 3
       ar3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        11          0 {txt}{c |}{res}        11 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}     1,288        316 {txt}{c |}{res}     1,604 
           {txt}{c |}{res}     80.30      19.70 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     1,299        316 {txt}{c |}{res}     1,615 
           {txt}{c |}{res}     80.43      19.57 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.6943  {txt} Pr = {res}0.101
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  4.8086  {txt} Pr = {res}0.028
{txt}
{com}. tab rel_neverwar2 rel_alwaysjtdem2 if rel_anymidsall==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |} Rel: Always jt dem in
rel_neverw {c |}         per 2
       ar2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        61          0 {txt}{c |}{res}        61 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       670         29 {txt}{c |}{res}       699 
           {txt}{c |}{res}     95.85       4.15 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       731         29 {txt}{c |}{res}       760 
           {txt}{c |}{res}     96.18       3.82 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.6312  {txt} Pr = {res}0.105
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  4.9519  {txt} Pr = {res}0.026
{txt}
{com}. tab rel_neverwar3 rel_alwaysjtdem3 if rel_anymidsall==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |} Rel: Always jt dem in
rel_neverw {c |}         per 3
       ar3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        18          0 {txt}{c |}{res}        18 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       633        223 {txt}{c |}{res}       856 
           {txt}{c |}{res}     73.95      26.05 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       651        223 {txt}{c |}{res}       874 
           {txt}{c |}{res}     74.49      25.51 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  6.2956  {txt} Pr = {res}0.012
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 10.7336  {txt} Pr = {res}0.001
{txt}
{com}. 
. //Table 6. Note focus on democratic dyads; for space, pull only second row of the crosstab (i.e., the democratic dyads).
. tab rel_alwaysjtdem2 rel_anyterrmids2 if rel_everpolrel2==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyterrmids2
         2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       855        110 {txt}{c |}{res}       965 
           {txt}{c |}{res}     88.60      11.40 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}        56          1 {txt}{c |}{res}        57 
           {txt}{c |}{res}     98.25       1.75 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       911        111 {txt}{c |}{res}     1,022 
           {txt}{c |}{res}     89.14      10.86 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  5.1710  {txt} Pr = {res}0.023
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  7.5329  {txt} Pr = {res}0.006
{txt}
{com}. tab rel_alwaysjtdem3 rel_anyterrmids3 if rel_everpolrel3==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyterrmids3
         3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}     1,231         68 {txt}{c |}{res}     1,299 
           {txt}{c |}{res}     94.77       5.23 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       310          6 {txt}{c |}{res}       316 
           {txt}{c |}{res}     98.10       1.90 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     1,541         74 {txt}{c |}{res}     1,615 
           {txt}{c |}{res}     95.42       4.58 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  6.4700  {txt} Pr = {res}0.011
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  7.8358  {txt} Pr = {res}0.005
{txt}
{com}. tab rel_alwaysjtdem2 rel_anyterrmids2 if rel_anymidsall==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyterrmids2
         2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       585        146 {txt}{c |}{res}       731 
           {txt}{c |}{res}     80.03      19.97 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}        27          2 {txt}{c |}{res}        29 
           {txt}{c |}{res}     93.10       6.90 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       612        148 {txt}{c |}{res}       760 
           {txt}{c |}{res}     80.53      19.47 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  3.0414  {txt} Pr = {res}0.081
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  3.8000  {txt} Pr = {res}0.051
{txt}
{com}. tab rel_alwaysjtdem3 rel_anyterrmids3 if rel_anymidsall==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyterrmids3
         3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       536        115 {txt}{c |}{res}       651 
           {txt}{c |}{res}     82.33      17.67 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       216          7 {txt}{c |}{res}       223 
           {txt}{c |}{res}     96.86       3.14 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       752        122 {txt}{c |}{res}       874 
           {txt}{c |}{res}     86.04      13.96 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 29.1822  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 37.2390  {txt} Pr = {res}0.000
{txt}
{com}. 
. //Table 7. Note focus on democratic dyads; for space, pull only second row of the crosstab (i.e., the democratic dyads).
. tab rel_alwaysjtdem2 rel_anyicowterr2 if rel_everpolrel2==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyicowterr2
         2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       808        157 {txt}{c |}{res}       965 
           {txt}{c |}{res}     83.73      16.27 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}        50          7 {txt}{c |}{res}        57 
           {txt}{c |}{res}     87.72      12.28 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       858        164 {txt}{c |}{res}     1,022 
           {txt}{c |}{res}     83.95      16.05 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.6356  {txt} Pr = {res}0.425
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  0.6789  {txt} Pr = {res}0.410
{txt}
{com}. tab rel_alwaysjtdem3 rel_anyicowterr3 if rel_everpolrel3==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyicowterr3
         3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}     1,202         97 {txt}{c |}{res}     1,299 
           {txt}{c |}{res}     92.53       7.47 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       299         17 {txt}{c |}{res}       316 
           {txt}{c |}{res}     94.62       5.38 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     1,501        114 {txt}{c |}{res}     1,615 
           {txt}{c |}{res}     92.94       7.06 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  1.6883  {txt} Pr = {res}0.194
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  1.7960  {txt} Pr = {res}0.180
{txt}
{com}. tab rel_alwaysjtdem2 rel_anyicowterr2 if rel_anymidsall==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyicowterr2
         2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       578        153 {txt}{c |}{res}       731 
           {txt}{c |}{res}     79.07      20.93 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}        26          3 {txt}{c |}{res}        29 
           {txt}{c |}{res}     89.66      10.34 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       604        156 {txt}{c |}{res}       760 
           {txt}{c |}{res}     79.47      20.53 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  1.9159  {txt} Pr = {res}0.166
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  2.2298  {txt} Pr = {res}0.135
{txt}
{com}. tab rel_alwaysjtdem3 rel_anyicowterr3 if rel_anymidsall==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyicowterr3
         3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       567         84 {txt}{c |}{res}       651 
           {txt}{c |}{res}     87.10      12.90 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       210         13 {txt}{c |}{res}       223 
           {txt}{c |}{res}     94.17       5.83 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       777         97 {txt}{c |}{res}       874 
           {txt}{c |}{res}     88.90      11.10 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  8.4234  {txt} Pr = {res}0.004
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  9.4966  {txt} Pr = {res}0.002
{txt}
{com}. 
. //Online Appendix.
. //Table A1.
. tab rel_anywarall

{txt}rel_anywara {c |}
         ll {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}     19,603       98.75       98.75
{txt}          1 {c |}{res}        249        1.25      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}     19,852      100.00
{txt}
{com}. tab rel_anywar1

{txt}rel_anywar1 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}      2,780       93.89       93.89
{txt}          1 {c |}{res}        181        6.11      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      2,961      100.00
{txt}
{com}. tab rel_anywar2

{txt}rel_anywar2 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}     13,089       99.54       99.54
{txt}          1 {c |}{res}         61        0.46      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}     13,150      100.00
{txt}
{com}. tab rel_anywar3

{txt}rel_anywar3 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}     18,953       99.91       99.91
{txt}          1 {c |}{res}         18        0.09      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}     18,971      100.00
{txt}
{com}. 
. tab rel_anywarall if rel_everpolrelall==1

{txt}rel_anywara {c |}
         ll {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}      1,144       91.59       91.59
{txt}          1 {c |}{res}        105        8.41      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,249      100.00
{txt}
{com}. tab rel_anywar1 if rel_everpolrel1==1

{txt}rel_anywar1 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        538       78.31       78.31
{txt}          1 {c |}{res}        149       21.69      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        687      100.00
{txt}
{com}. tab rel_anywar2 if rel_everpolrel2==1

{txt}rel_anywar2 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        981       95.99       95.99
{txt}          1 {c |}{res}         41        4.01      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,022      100.00
{txt}
{com}. tab rel_anywar3 if rel_everpolrel3==1

{txt}rel_anywar3 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}      1,604       99.32       99.32
{txt}          1 {c |}{res}         11        0.68      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,615      100.00
{txt}
{com}. 
. tab rel_anywarall if rel_anymidsall==1

{txt}rel_anywara {c |}
         ll {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        703       73.84       73.84
{txt}          1 {c |}{res}        249       26.16      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        952      100.00
{txt}
{com}. tab rel_anywar1 if rel_anymidsall==1

{txt}rel_anywar1 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        374       67.39       67.39
{txt}          1 {c |}{res}        181       32.61      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        555      100.00
{txt}
{com}. tab rel_anywar2 if rel_anymidsall==1

{txt}rel_anywar2 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        699       91.97       91.97
{txt}          1 {c |}{res}         61        8.03      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        760      100.00
{txt}
{com}. tab rel_anywar3 if rel_anymidsall==1

{txt}rel_anywar3 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        856       97.94       97.94
{txt}          1 {c |}{res}         18        2.06      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        874      100.00
{txt}
{com}. 
. //Table A2.
. firthlogit rel_neverwar2 rel_anyterrmids2 rel_alwaysjtdem2 
{res}
{txt}initial:{col 16}penalized log likelihood = {res: -386.5991}
rescale:{col 16}penalized log likelihood = {res: -386.5991}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res: -386.5991}  
Iteration 1:{space 3}penalized log likelihood = {res:-223.69853}  
Iteration 2:{space 3}penalized log likelihood = {res:-203.65456}  
Iteration 3:{space 3}penalized log likelihood = {res:-200.19391}  (not concave)
Iteration 4:{space 3}penalized log likelihood = {res:-199.46272}  
Iteration 5:{space 3}penalized log likelihood = {res:-198.92769}  
Iteration 6:{space 3}penalized log likelihood = {res: -198.9257}  
Iteration 7:{space 3}penalized log likelihood = {res: -198.9257}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}    13,150
{txt}{col 49}Wald chi2({res}2{txt}){col 67}= {res}    363.56
{txt}Penalized log likelihood = {res} -198.9257{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar2{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids2 {c |}{col 18}{res}{space 2}-6.029419{col 30}{space 2} .3162568{col 41}{space 1}  -19.06{col 50}{space 3}0.000{col 58}{space 4}-6.649271{col 71}{space 3}-5.409567
{txt}rel_alwaysjtdem2 {c |}{col 18}{res}{space 2} 1.054994{col 30}{space 2} 1.518863{col 41}{space 1}    0.69{col 50}{space 3}0.487{col 58}{space 4}-1.921922{col 71}{space 3} 4.031911
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 6.770319{col 30}{space 2} .2624268{col 41}{space 1}   25.80{col 50}{space 3}0.000{col 58}{space 4} 6.255972{col 71}{space 3} 7.284666
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar2 rel_anyterrmids2 rel_alwaysjtdem2 rel_meancinc2 rel_meantrade2 
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-328.78159}
rescale:{col 16}penalized log likelihood = {res:-328.78159}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-328.78159}  (not concave)
Iteration 1:{space 3}penalized log likelihood = {res:-205.48898}  
Iteration 2:{space 3}penalized log likelihood = {res:-188.66327}  
Iteration 3:{space 3}penalized log likelihood = {res:-176.47755}  (not concave)
Iteration 4:{space 3}penalized log likelihood = {res:-175.04692}  
Iteration 5:{space 3}penalized log likelihood = {res: -170.7894}  
Iteration 6:{space 3}penalized log likelihood = {res:-170.67767}  
Iteration 7:{space 3}penalized log likelihood = {res: -170.6772}  
Iteration 8:{space 3}penalized log likelihood = {res: -170.6772}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}     9,822
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}    305.23
{txt}Penalized log likelihood = {res} -170.6772{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar2{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids2 {c |}{col 18}{res}{space 2}-5.655157{col 30}{space 2} .3307973{col 41}{space 1}  -17.10{col 50}{space 3}0.000{col 58}{space 4}-6.303507{col 71}{space 3}-5.006806
{txt}rel_alwaysjtdem2 {c |}{col 18}{res}{space 2}  1.04085{col 30}{space 2} 1.483601{col 41}{space 1}    0.70{col 50}{space 3}0.483{col 58}{space 4}-1.866954{col 71}{space 3} 3.948654
{txt}{space 3}rel_meancinc2 {c |}{col 18}{res}{space 2}-.3925685{col 30}{space 2} .5791139{col 41}{space 1}   -0.68{col 50}{space 3}0.498{col 58}{space 4}-1.527611{col 71}{space 3} .7424739
{txt}{space 2}rel_meantrade2 {c |}{col 18}{res}{space 2}-.0001385{col 30}{space 2} .0000516{col 41}{space 1}   -2.68{col 50}{space 3}0.007{col 58}{space 4}-.0002397{col 71}{space 3}-.0000372
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 6.630064{col 30}{space 2}  .308697{col 41}{space 1}   21.48{col 50}{space 3}0.000{col 58}{space 4} 6.025029{col 71}{space 3} 7.235099
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar3 rel_anyterrmids3 rel_alwaysjtdem3 
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-142.74831}
rescale:{col 16}penalized log likelihood = {res:-142.74831}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-142.74831}  
Iteration 1:{space 3}penalized log likelihood = {res:-84.580329}  
Iteration 2:{space 3}penalized log likelihood = {res:-75.723403}  
Iteration 3:{space 3}penalized log likelihood = {res:-73.612522}  
Iteration 4:{space 3}penalized log likelihood = {res:-72.815975}  (not concave)
Iteration 5:{space 3}penalized log likelihood = {res:-72.500078}  
Iteration 6:{space 3}penalized log likelihood = {res:-72.483799}  
Iteration 7:{space 3}penalized log likelihood = {res:-72.483748}  
Iteration 8:{space 3}penalized log likelihood = {res:-72.483748}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}    18,971
{txt}{col 49}Wald chi2({res}2{txt}){col 67}= {res}    122.73
{txt}Penalized log likelihood = {res}-72.483748{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar3{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids3 {c |}{col 18}{res}{space 2}-6.628725{col 30}{space 2} .5997235{col 41}{space 1}  -11.05{col 50}{space 3}0.000{col 58}{space 4}-7.804161{col 71}{space 3}-5.453289
{txt}rel_alwaysjtdem3 {c |}{col 18}{res}{space 2} 1.040413{col 30}{space 2} 1.465493{col 41}{space 1}    0.71{col 50}{space 3}0.478{col 58}{space 4}  -1.8319{col 71}{space 3} 3.912727
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 8.499849{col 30}{space 2} .5339852{col 41}{space 1}   15.92{col 50}{space 3}0.000{col 58}{space 4} 7.453257{col 71}{space 3} 9.546441
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar3 rel_anyterrmids3 rel_alwaysjtdem3 rel_meancinc3 rel_meantrade3 
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-121.21705}
rescale:{col 16}penalized log likelihood = {res:-121.21705}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-121.21705}  (not concave)
Iteration 1:{space 3}penalized log likelihood = {res:-68.288329}  
Iteration 2:{space 3}penalized log likelihood = {res:-58.520837}  
Iteration 3:{space 3}penalized log likelihood = {res:-58.070688}  
Iteration 4:{space 3}penalized log likelihood = {res:-58.044408}  
Iteration 5:{space 3}penalized log likelihood = {res:-58.044142}  
Iteration 6:{space 3}penalized log likelihood = {res:-58.044142}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}    14,431
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}    112.40
{txt}Penalized log likelihood = {res}-58.044142{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar3{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids3 {c |}{col 18}{res}{space 2}-6.338381{col 30}{space 2} .6097291{col 41}{space 1}  -10.40{col 50}{space 3}0.000{col 58}{space 4}-7.533428{col 71}{space 3}-5.143334
{txt}rel_alwaysjtdem3 {c |}{col 18}{res}{space 2} .9520832{col 30}{space 2} 1.475514{col 41}{space 1}    0.65{col 50}{space 3}0.519{col 58}{space 4} -1.93987{col 71}{space 3} 3.844037
{txt}{space 3}rel_meancinc3 {c |}{col 18}{res}{space 2}-.2097413{col 30}{space 2} .9499925{col 41}{space 1}   -0.22{col 50}{space 3}0.825{col 58}{space 4}-2.071692{col 71}{space 3}  1.65221
{txt}{space 2}rel_meantrade3 {c |}{col 18}{res}{space 2} 5.99e-06{col 30}{space 2} .0000273{col 41}{space 1}    0.22{col 50}{space 3}0.826{col 58}{space 4}-.0000475{col 71}{space 3} .0000595
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 8.220946{col 30}{space 2} .5810438{col 41}{space 1}   14.15{col 50}{space 3}0.000{col 58}{space 4} 7.082121{col 71}{space 3} 9.359771
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. //Table A3. 
. tab rel_neverwar2 rel_anyterrmids2, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}   rel_anyterrmids2
       ar2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        14         47 {txt}{c |}{res}        61 
           {txt}{c |}{res}     22.95      77.05 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}    12,988        101 {txt}{c |}{res}    13,089 
           {txt}{c |}{res}     99.23       0.77 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    13,002        148 {txt}{c |}{res}    13,150 
           {txt}{c |}{res}     98.87       1.13 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 3.2e+03  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res}372.9216  {txt} Pr = {res}0.000
{txt}
{com}. tab rel_neverwar3 rel_anyterrmids3, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}   rel_anyterrmids3
       ar3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}         3         15 {txt}{c |}{res}        18 
           {txt}{c |}{res}     16.67      83.33 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}    18,846        107 {txt}{c |}{res}    18,953 
           {txt}{c |}{res}     99.44       0.56 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    18,849        122 {txt}{c |}{res}    18,971 
           {txt}{c |}{res}     99.36       0.64 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 1.9e+03  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res}137.1261  {txt} Pr = {res}0.000
{txt}
{com}. 
. //Table A4. 
. tab rel_neverwar2 rel_alwaysjtdem2, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |} Rel: Always jt dem in
rel_neverw {c |}         per 2
       ar2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        61          0 {txt}{c |}{res}        61 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}    12,775        314 {txt}{c |}{res}    13,089 
           {txt}{c |}{res}     97.60       2.40 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    12,836        314 {txt}{c |}{res}    13,150 
           {txt}{c |}{res}     97.61       2.39 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  1.4992  {txt} Pr = {res}0.221
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  2.9554  {txt} Pr = {res}0.086
{txt}
{com}. tab rel_neverwar3 rel_alwaysjtdem3, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |} Rel: Always jt dem in
rel_neverw {c |}         per 3
       ar3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        18          0 {txt}{c |}{res}        18 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}    17,348      1,605 {txt}{c |}{res}    18,953 
           {txt}{c |}{res}     91.53       8.47 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    17,366      1,605 {txt}{c |}{res}    18,971 
           {txt}{c |}{res}     91.54       8.46 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  1.6652  {txt} Pr = {res}0.197
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  3.1839  {txt} Pr = {res}0.074
{txt}
{com}. 
. //Table A5.
. tab rel_alwaysjtdem2 rel_anyterrmids2, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyterrmids2
         2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}    12,690        146 {txt}{c |}{res}    12,836 
           {txt}{c |}{res}     98.86       1.14 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       312          2 {txt}{c |}{res}       314 
           {txt}{c |}{res}     99.36       0.64 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    13,002        148 {txt}{c |}{res}    13,150 
           {txt}{c |}{res}     98.87       1.13 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.6899  {txt} Pr = {res}0.406
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  0.8148  {txt} Pr = {res}0.367
{txt}
{com}. tab rel_alwaysjtdem3 rel_anyterrmids3, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyterrmids3
         3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}    17,251        115 {txt}{c |}{res}    17,366 
           {txt}{c |}{res}     99.34       0.66 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}     1,598          7 {txt}{c |}{res}     1,605 
           {txt}{c |}{res}     99.56       0.44 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    18,849        122 {txt}{c |}{res}    18,971 
           {txt}{c |}{res}     99.36       0.64 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  1.1752  {txt} Pr = {res}0.278
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  1.3119  {txt} Pr = {res}0.252
{txt}
{com}. 
. //Table A6.
. tab rel_alwaysjtdem2 rel_anyicowterr2, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyicowterr2
         2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}    12,645        191 {txt}{c |}{res}    12,836 
           {txt}{c |}{res}     98.51       1.49 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       306          8 {txt}{c |}{res}       314 
           {txt}{c |}{res}     97.45       2.55 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    12,951        199 {txt}{c |}{res}    13,150 
           {txt}{c |}{res}     98.49       1.51 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.3097  {txt} Pr = {res}0.129
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  1.9280  {txt} Pr = {res}0.165
{txt}
{com}. tab rel_alwaysjtdem3 rel_anyicowterr3, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyicowterr3
         3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}    17,254        112 {txt}{c |}{res}    17,366 
           {txt}{c |}{res}     99.36       0.64 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}     1,586         19 {txt}{c |}{res}     1,605 
           {txt}{c |}{res}     98.82       1.18 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    18,840        131 {txt}{c |}{res}    18,971 
           {txt}{c |}{res}     99.31       0.69 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  6.2211  {txt} Pr = {res}0.013
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  5.2267  {txt} Pr = {res}0.022
{txt}
{com}. 
. //Table A7.
. firthlogit rel_neverwarall rel_anyterrmidsall rel_alwaysjtdemall 
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-1333.2541}
rescale:{col 16}penalized log likelihood = {res:-1333.2541}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-1333.2541}  
Iteration 1:{space 3}penalized log likelihood = {res:-808.47698}  
Iteration 2:{space 3}penalized log likelihood = {res:-734.47262}  
Iteration 3:{space 3}penalized log likelihood = {res:-732.41331}  
Iteration 4:{space 3}penalized log likelihood = {res:-732.20032}  
Iteration 5:{space 3}penalized log likelihood = {res:-732.19827}  
Iteration 6:{space 3}penalized log likelihood = {res:-732.19827}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}    19,852
{txt}{col 49}Wald chi2({res}2{txt}){col 67}= {res}   1202.61
{txt}Penalized log likelihood = {res}-732.19827{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwarall{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmidsall {c |}{col 20}{res}{space 2}-5.405161{col 32}{space 2} .1560455{col 43}{space 1}  -34.64{col 52}{space 3}0.000{col 60}{space 4}-5.711005{col 73}{space 3}-5.099318
{txt}rel_alwaysjtdemall {c |}{col 20}{res}{space 2} 2.026396{col 32}{space 2} 1.458842{col 43}{space 1}    1.39{col 52}{space 3}0.165{col 60}{space 4}-.8328815{col 73}{space 3} 4.885674
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} 5.575167{col 32}{space 2} .1184401{col 43}{space 1}   47.07{col 52}{space 3}0.000{col 60}{space 4} 5.343029{col 73}{space 3} 5.807305
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwarall rel_anyterrmidsall rel_alwaysjtdemall rel_meancincall rel_meantradeall 
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-1092.8698}
rescale:{col 16}penalized log likelihood = {res:-1092.8698}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-1092.8698}  (not concave)
Iteration 1:{space 3}penalized log likelihood = {res:-1044.3615}  
Iteration 2:{space 3}penalized log likelihood = {res:-693.56305}  
Iteration 3:{space 3}penalized log likelihood = {res:-631.49537}  
Iteration 4:{space 3}penalized log likelihood = {res:-624.54352}  
Iteration 5:{space 3}penalized log likelihood = {res:-623.45612}  
Iteration 6:{space 3}penalized log likelihood = {res:-623.36196}  
Iteration 7:{space 3}penalized log likelihood = {res:-623.36053}  
Iteration 8:{space 3}penalized log likelihood = {res:-623.36053}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}    14,917
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}    933.40
{txt}Penalized log likelihood = {res}-623.36053{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwarall{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmidsall {c |}{col 20}{res}{space 2}-4.932752{col 32}{space 2} .1686334{col 43}{space 1}  -29.25{col 52}{space 3}0.000{col 60}{space 4}-5.263267{col 73}{space 3}-4.602236
{txt}rel_alwaysjtdemall {c |}{col 20}{res}{space 2} 2.446003{col 32}{space 2} 1.879833{col 43}{space 1}    1.30{col 52}{space 3}0.193{col 60}{space 4}-1.238402{col 73}{space 3} 6.130408
{txt}{space 3}rel_meancincall {c |}{col 20}{res}{space 2}-.8070362{col 32}{space 2}  .324028{col 43}{space 1}   -2.49{col 52}{space 3}0.013{col 60}{space 4}-1.442119{col 73}{space 3} -.171953
{txt}{space 2}rel_meantradeall {c |}{col 20}{res}{space 2}-.0000964{col 32}{space 2} .0000282{col 43}{space 1}   -3.41{col 52}{space 3}0.001{col 60}{space 4}-.0001517{col 73}{space 3} -.000041
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} 5.592151{col 32}{space 2} .1553502{col 43}{space 1}   36.00{col 52}{space 3}0.000{col 60}{space 4} 5.287671{col 73}{space 3} 5.896632
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwarall rel_anyterrmidsall rel_alwaysjtdemall if rel_everpolrelall==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-356.13442}
rescale:{col 16}penalized log likelihood = {res:-356.13442}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-356.13442}  
Iteration 1:{space 3}penalized log likelihood = {res:-261.33204}  
Iteration 2:{space 3}penalized log likelihood = {res:-246.39914}  
Iteration 3:{space 3}penalized log likelihood = {res:-246.04153}  
Iteration 4:{space 3}penalized log likelihood = {res:-246.03556}  
Iteration 5:{space 3}penalized log likelihood = {res:-246.03555}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}     1,249
{txt}{col 49}Wald chi2({res}2{txt}){col 67}= {res}    177.49
{txt}Penalized log likelihood = {res}-246.03555{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwarall{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmidsall {c |}{col 20}{res}{space 2}-3.271955{col 32}{space 2} .2473897{col 43}{space 1}  -13.23{col 52}{space 3}0.000{col 60}{space 4} -3.75683{col 73}{space 3} -2.78708
{txt}rel_alwaysjtdemall {c |}{col 20}{res}{space 2} 1.829157{col 32}{space 2} 1.462807{col 43}{space 1}    1.25{col 52}{space 3}0.211{col 60}{space 4}-1.037893{col 73}{space 3} 4.696207
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} 3.633698{col 32}{space 2} .2004173{col 43}{space 1}   18.13{col 52}{space 3}0.000{col 60}{space 4} 3.240888{col 73}{space 3} 4.026509
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwarall rel_anyterrmidsall rel_alwaysjtdemall rel_meancincall rel_meantradeall if rel_everpolrelall==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-279.36738}
rescale:{col 16}penalized log likelihood = {res:-279.36738}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-279.36738}  
Iteration 1:{space 3}penalized log likelihood = {res:-197.91567}  
Iteration 2:{space 3}penalized log likelihood = {res:-183.50857}  
Iteration 3:{space 3}penalized log likelihood = {res: -183.0989}  
Iteration 4:{space 3}penalized log likelihood = {res:-183.08037}  
Iteration 5:{space 3}penalized log likelihood = {res:-183.08033}  
Iteration 6:{space 3}penalized log likelihood = {res:-183.08033}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}     1,067
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}    143.44
{txt}Penalized log likelihood = {res}-183.08033{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwarall{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmidsall {c |}{col 20}{res}{space 2}-2.952756{col 32}{space 2} .2946252{col 43}{space 1}  -10.02{col 52}{space 3}0.000{col 60}{space 4} -3.53021{col 73}{space 3}-2.375301
{txt}rel_alwaysjtdemall {c |}{col 20}{res}{space 2}  1.93193{col 32}{space 2} 1.842814{col 43}{space 1}    1.05{col 52}{space 3}0.294{col 60}{space 4} -1.67992{col 73}{space 3} 5.543779
{txt}{space 3}rel_meancincall {c |}{col 20}{res}{space 2}-1.589649{col 32}{space 2} .5357286{col 43}{space 1}   -2.97{col 52}{space 3}0.003{col 60}{space 4}-2.639658{col 73}{space 3}-.5396399
{txt}{space 2}rel_meantradeall {c |}{col 20}{res}{space 2}-.0000668{col 32}{space 2} .0000298{col 43}{space 1}   -2.24{col 52}{space 3}0.025{col 60}{space 4}-.0001253{col 73}{space 3}-8.38e-06
{txt}{space 13}_cons {c |}{col 20}{res}{space 2}  4.00731{col 32}{space 2} .2523112{col 43}{space 1}   15.88{col 52}{space 3}0.000{col 60}{space 4} 3.512789{col 73}{space 3} 4.501831
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwarall rel_anyterrmidsall rel_alwaysjtdemall if rel_anymidsall==1 
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-542.51687}
rescale:{col 16}penalized log likelihood = {res:-542.51687}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-542.51687}  
Iteration 1:{space 3}penalized log likelihood = {res:-479.75914}  
Iteration 2:{space 3}penalized log likelihood = {res:-477.36104}  
Iteration 3:{space 3}penalized log likelihood = {res:-477.34492}  
Iteration 4:{space 3}penalized log likelihood = {res:-477.34486}  
Iteration 5:{space 3}penalized log likelihood = {res:-477.34486}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       952
{txt}{col 49}Wald chi2({res}2{txt}){col 67}= {res}    116.53
{txt}Penalized log likelihood = {res}-477.34486{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwarall{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmidsall {c |}{col 20}{res}{space 2}-1.746992{col 32}{space 2} .1623715{col 43}{space 1}  -10.76{col 52}{space 3}0.000{col 60}{space 4}-2.065234{col 73}{space 3} -1.42875
{txt}rel_alwaysjtdemall {c |}{col 20}{res}{space 2} 1.633488{col 32}{space 2} 1.514136{col 43}{space 1}    1.08{col 52}{space 3}0.281{col 60}{space 4}-1.334165{col 73}{space 3}  4.60114
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} 1.916988{col 32}{space 2} .1266276{col 43}{space 1}   15.14{col 52}{space 3}0.000{col 60}{space 4} 1.668803{col 73}{space 3} 2.165174
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwarall rel_anyterrmidsall rel_alwaysjtdemall rel_meancincall rel_meantradeall if rel_anymidsall==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-464.84297}
rescale:{col 16}penalized log likelihood = {res:-464.84297}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-464.84297}  
Iteration 1:{space 3}penalized log likelihood = {res:-412.05039}  
Iteration 2:{space 3}penalized log likelihood = {res:-409.59455}  
Iteration 3:{space 3}penalized log likelihood = {res:-409.48221}  
Iteration 4:{space 3}penalized log likelihood = {res:-409.47942}  
Iteration 5:{space 3}penalized log likelihood = {res:-409.47942}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       866
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}     97.04
{txt}Penalized log likelihood = {res}-409.47942{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwarall{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmidsall {c |}{col 20}{res}{space 2}-1.540411{col 32}{space 2} .1760355{col 43}{space 1}   -8.75{col 52}{space 3}0.000{col 60}{space 4}-1.885434{col 73}{space 3}-1.195387
{txt}rel_alwaysjtdemall {c |}{col 20}{res}{space 2} 3.709231{col 32}{space 2} 3.459523{col 43}{space 1}    1.07{col 52}{space 3}0.284{col 60}{space 4}-3.071308{col 73}{space 3} 10.48977
{txt}{space 3}rel_meancincall {c |}{col 20}{res}{space 2}-.9042205{col 32}{space 2} .3438492{col 43}{space 1}   -2.63{col 52}{space 3}0.009{col 60}{space 4}-1.578153{col 73}{space 3}-.2302884
{txt}{space 2}rel_meantradeall {c |}{col 20}{res}{space 2}-.0000672{col 32}{space 2} .0000383{col 43}{space 1}   -1.76{col 52}{space 3}0.079{col 60}{space 4}-.0001422{col 73}{space 3} 7.83e-06
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} 2.193317{col 32}{space 2} .1636883{col 43}{space 1}   13.40{col 52}{space 3}0.000{col 60}{space 4} 1.872493{col 73}{space 3}  2.51414
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. //Table A8.
. firthlogit rel_neverwar1 rel_anyterrmids1 rel_alwaysjtdem1 
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-677.24547}
rescale:{col 16}penalized log likelihood = {res:-677.24547}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-677.24547}  
Iteration 1:{space 3}penalized log likelihood = {res: -486.3063}  
Iteration 2:{space 3}penalized log likelihood = {res:-424.64628}  
Iteration 3:{space 3}penalized log likelihood = {res:-418.72064}  
Iteration 4:{space 3}penalized log likelihood = {res:-418.68046}  
Iteration 5:{space 3}penalized log likelihood = {res:-418.68044}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}     2,961
{txt}{col 49}Wald chi2({res}2{txt}){col 67}= {res}    470.38
{txt}Penalized log likelihood = {res}-418.68044{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar1{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids1 {c |}{col 18}{res}{space 2}-4.353914{col 30}{space 2} .2012035{col 41}{space 1}  -21.64{col 50}{space 3}0.000{col 58}{space 4}-4.748266{col 71}{space 3}-3.959563
{txt}rel_alwaysjtdem1 {c |}{col 18}{res}{space 2}   .39581{col 30}{space 2} 1.431226{col 41}{space 1}    0.28{col 50}{space 3}0.782{col 58}{space 4}-2.409342{col 71}{space 3} 3.200962
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}  3.71506{col 30}{space 2}  .125056{col 41}{space 1}   29.71{col 50}{space 3}0.000{col 58}{space 4} 3.469955{col 71}{space 3} 3.960165
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar1 rel_anyterrmids1 rel_alwaysjtdem1 rel_meancinc1 rel_meantrade1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-423.52604}
rescale:{col 16}penalized log likelihood = {res:-423.52604}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-423.52604}  
Iteration 1:{space 3}penalized log likelihood = {res:-384.11518}  
Iteration 2:{space 3}penalized log likelihood = {res:-379.69969}  
Iteration 3:{space 3}penalized log likelihood = {res:-296.95369}  
Iteration 4:{space 3}penalized log likelihood = {res:-279.48876}  
Iteration 5:{space 3}penalized log likelihood = {res:-279.46938}  
Iteration 6:{space 3}penalized log likelihood = {res:-279.46937}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}     1,332
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}    252.46
{txt}Penalized log likelihood = {res}-279.46937{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar1{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids1 {c |}{col 18}{res}{space 2}-3.554743{col 30}{space 2}  .243565{col 41}{space 1}  -14.59{col 50}{space 3}0.000{col 58}{space 4}-4.032121{col 71}{space 3}-3.077364
{txt}rel_alwaysjtdem1 {c |}{col 18}{res}{space 2}  1.03362{col 30}{space 2} 1.523748{col 41}{space 1}    0.68{col 50}{space 3}0.498{col 58}{space 4}-1.952871{col 71}{space 3}  4.02011
{txt}{space 3}rel_meancinc1 {c |}{col 18}{res}{space 2}-.7352046{col 30}{space 2} .4616735{col 41}{space 1}   -1.59{col 50}{space 3}0.111{col 58}{space 4}-1.640068{col 71}{space 3} .1696588
{txt}{space 2}rel_meantrade1 {c |}{col 18}{res}{space 2}-.0027247{col 30}{space 2} .0021906{col 41}{space 1}   -1.24{col 50}{space 3}0.214{col 58}{space 4}-.0070182{col 71}{space 3} .0015688
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 3.381065{col 30}{space 2} .2051516{col 41}{space 1}   16.48{col 50}{space 3}0.000{col 58}{space 4} 2.978975{col 71}{space 3} 3.783154
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar1 rel_anyterrmids1 rel_alwaysjtdem1  if rel_everpolrel1==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-355.08755}
rescale:{col 16}penalized log likelihood = {res:-355.08755}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-355.08755}  
Iteration 1:{space 3}penalized log likelihood = {res:-256.47641}  
Iteration 2:{space 3}penalized log likelihood = {res:-246.53103}  
Iteration 3:{space 3}penalized log likelihood = {res:-246.27662}  
Iteration 4:{space 3}penalized log likelihood = {res:-246.27651}  
Iteration 5:{space 3}penalized log likelihood = {res:-246.27651}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       687
{txt}{col 49}Wald chi2({res}2{txt}){col 67}= {res}    179.70
{txt}Penalized log likelihood = {res}-246.27651{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar1{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids1 {c |}{col 18}{res}{space 2}-3.060315{col 30}{space 2} .2296964{col 41}{space 1}  -13.32{col 50}{space 3}0.000{col 58}{space 4}-3.510511{col 71}{space 3}-2.610118
{txt}rel_alwaysjtdem1 {c |}{col 18}{res}{space 2}  .594159{col 30}{space 2}  1.45673{col 41}{space 1}    0.41{col 50}{space 3}0.683{col 58}{space 4}-2.260979{col 71}{space 3} 3.449298
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 2.450366{col 30}{space 2}  .163772{col 41}{space 1}   14.96{col 50}{space 3}0.000{col 58}{space 4} 2.129379{col 71}{space 3} 2.771354
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar1 rel_anyterrmids1 rel_alwaysjtdem1 rel_meancinc1 rel_meantrade1 if rel_everpolrel1==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-257.94863}
rescale:{col 16}penalized log likelihood = {res:-257.94863}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-257.94863}  
Iteration 1:{space 3}penalized log likelihood = {res:-188.89985}  
Iteration 2:{space 3}penalized log likelihood = {res:-184.88866}  
Iteration 3:{space 3}penalized log likelihood = {res:-184.83292}  
Iteration 4:{space 3}penalized log likelihood = {res:-184.83278}  
Iteration 5:{space 3}penalized log likelihood = {res:-184.83278}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       477
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}    112.02
{txt}Penalized log likelihood = {res}-184.83278{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar1{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids1 {c |}{col 18}{res}{space 2}-2.480859{col 30}{space 2}  .259694{col 41}{space 1}   -9.55{col 50}{space 3}0.000{col 58}{space 4}-2.989849{col 71}{space 3}-1.971868
{txt}rel_alwaysjtdem1 {c |}{col 18}{res}{space 2}  .516513{col 30}{space 2} 1.509207{col 41}{space 1}    0.34{col 50}{space 3}0.732{col 58}{space 4}-2.441478{col 71}{space 3} 3.474504
{txt}{space 3}rel_meancinc1 {c |}{col 18}{res}{space 2}-2.425559{col 30}{space 2} .6114961{col 41}{space 1}   -3.97{col 50}{space 3}0.000{col 58}{space 4}-3.624069{col 71}{space 3}-1.227048
{txt}{space 2}rel_meantrade1 {c |}{col 18}{res}{space 2}-.0000283{col 30}{space 2} .0018517{col 41}{space 1}   -0.02{col 50}{space 3}0.988{col 58}{space 4}-.0036576{col 71}{space 3}  .003601
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 2.517278{col 30}{space 2} .2170073{col 41}{space 1}   11.60{col 50}{space 3}0.000{col 58}{space 4} 2.091952{col 71}{space 3} 2.942605
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar1 rel_anyterrmids1 rel_alwaysjtdem1  if rel_anymidsall==1 
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-347.14625}
rescale:{col 16}penalized log likelihood = {res:-347.14625}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-347.14625}  
Iteration 1:{space 3}penalized log likelihood = {res:-285.48039}  
Iteration 2:{space 3}penalized log likelihood = {res:-284.59097}  
Iteration 3:{space 3}penalized log likelihood = {res:-284.58965}  
Iteration 4:{space 3}penalized log likelihood = {res:-284.58965}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       555
{txt}{col 49}Wald chi2({res}2{txt}){col 67}= {res}    111.98
{txt}Penalized log likelihood = {res}-284.58965{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar1{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids1 {c |}{col 18}{res}{space 2}-2.201408{col 30}{space 2}  .208113{col 41}{space 1}  -10.58{col 50}{space 3}0.000{col 58}{space 4}-2.609302{col 71}{space 3}-1.793514
{txt}rel_alwaysjtdem1 {c |}{col 18}{res}{space 2}-.4639308{col 30}{space 2} 1.638643{col 41}{space 1}   -0.28{col 50}{space 3}0.777{col 58}{space 4}-3.675613{col 71}{space 3} 2.747751
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 1.562554{col 30}{space 2}  .135894{col 41}{space 1}   11.50{col 50}{space 3}0.000{col 58}{space 4} 1.296207{col 71}{space 3} 1.828902
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar1 rel_anyterrmids1 rel_alwaysjtdem1 rel_meancinc1 rel_meantrade1 if rel_anymidsall==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-257.43911}
rescale:{col 16}penalized log likelihood = {res:-257.43911}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-257.43911}  
Iteration 1:{space 3}penalized log likelihood = {res:-206.98553}  
Iteration 2:{space 3}penalized log likelihood = {res:-205.69009}  
Iteration 3:{space 3}penalized log likelihood = {res:-205.68429}  
Iteration 4:{space 3}penalized log likelihood = {res:-205.68429}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       432
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}     84.48
{txt}Penalized log likelihood = {res}-205.68429{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar1{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids1 {c |}{col 18}{res}{space 2}-2.099764{col 30}{space 2} .2483846{col 41}{space 1}   -8.45{col 50}{space 3}0.000{col 58}{space 4}-2.586589{col 71}{space 3}-1.612939
{txt}rel_alwaysjtdem1 {c |}{col 18}{res}{space 2}-.7771301{col 30}{space 2} 2.308397{col 41}{space 1}   -0.34{col 50}{space 3}0.736{col 58}{space 4}-5.301504{col 71}{space 3} 3.747244
{txt}{space 3}rel_meancinc1 {c |}{col 18}{res}{space 2}-2.117737{col 30}{space 2} .5433767{col 41}{space 1}   -3.90{col 50}{space 3}0.000{col 58}{space 4}-3.182736{col 71}{space 3}-1.052739
{txt}{space 2}rel_meantrade1 {c |}{col 18}{res}{space 2}-.0001313{col 30}{space 2} .0018131{col 41}{space 1}   -0.07{col 50}{space 3}0.942{col 58}{space 4} -.003685{col 71}{space 3} .0034223
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 2.087135{col 30}{space 2}  .209989{col 41}{space 1}    9.94{col 50}{space 3}0.000{col 58}{space 4} 1.675564{col 71}{space 3} 2.498705
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. //Table A9.
. tab rel_neverwarall rel_anyterrmidsall, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}  rel_anyterrmidsall
     arall {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        71        178 {txt}{c |}{res}       249 
           {txt}{c |}{res}     28.51      71.49 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}    19,390        213 {txt}{c |}{res}    19,603 
           {txt}{c |}{res}     98.91       1.09 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    19,461        391 {txt}{c |}{res}    19,852 
           {txt}{c |}{res}     98.03       1.97 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 6.3e+03  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 1.2e+03  {txt} Pr = {res}0.000
{txt}
{com}. tab rel_neverwar1 rel_anyterrmids1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}   rel_anyterrmids1
       ar1 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        65        116 {txt}{c |}{res}       181 
           {txt}{c |}{res}     35.91      64.09 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}     2,719         61 {txt}{c |}{res}     2,780 
           {txt}{c |}{res}     97.81       2.19 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     2,784        177 {txt}{c |}{res}     2,961 
           {txt}{c |}{res}     94.02       5.98 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 1.2e+03  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res}517.5042  {txt} Pr = {res}0.000
{txt}
{com}. tab rel_neverwarall rel_anyterrmidsall if rel_everpolrelall==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}  rel_anyterrmidsall
     arall {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        25         80 {txt}{c |}{res}       105 
           {txt}{c |}{res}     23.81      76.19 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}     1,027        117 {txt}{c |}{res}     1,144 
           {txt}{c |}{res}     89.77      10.23 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     1,052        197 {txt}{c |}{res}     1,249 
           {txt}{c |}{res}     84.23      15.77 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}314.9918  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res}218.4146  {txt} Pr = {res}0.000
{txt}
{com}. tab rel_neverwar1 rel_anyterrmids1 if rel_everpolrel1==1, r chi2 lrchi2  
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}   rel_anyterrmids1
       ar1 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        40        109 {txt}{c |}{res}       149 
           {txt}{c |}{res}     26.85      73.15 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       479         59 {txt}{c |}{res}       538 
           {txt}{c |}{res}     89.03      10.97 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       519        168 {txt}{c |}{res}       687 
           {txt}{c |}{res}     75.55      24.45 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}244.2639  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res}218.8502  {txt} Pr = {res}0.000
{txt}
{com}. tab rel_neverwarall rel_anyterrmidsall if rel_anymidsall==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}  rel_anyterrmidsall
     arall {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        71        178 {txt}{c |}{res}       249 
           {txt}{c |}{res}     28.51      71.49 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       490        213 {txt}{c |}{res}       703 
           {txt}{c |}{res}     69.70      30.30 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       561        391 {txt}{c |}{res}       952 
           {txt}{c |}{res}     58.93      41.07 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}128.8775  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res}129.1516  {txt} Pr = {res}0.000
{txt}
{com}. tab rel_neverwar1 rel_anyterrmids1 if rel_anymidsall==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}   rel_anyterrmids1
       ar1 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        65        116 {txt}{c |}{res}       181 
           {txt}{c |}{res}     35.91      64.09 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       313         61 {txt}{c |}{res}       374 
           {txt}{c |}{res}     83.69      16.31 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       378        177 {txt}{c |}{res}       555 
           {txt}{c |}{res}     68.11      31.89 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}128.1853  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res}125.8714  {txt} Pr = {res}0.000
{txt}
{com}. 
. //Table A10.
. tab rel_neverwarall rel_alwaysjtdemall, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}  Rel: Always jt dem
     arall {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       249          0 {txt}{c |}{res}       249 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}    19,081        522 {txt}{c |}{res}    19,603 
           {txt}{c |}{res}     97.34       2.66 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    19,330        522 {txt}{c |}{res}    19,852 
           {txt}{c |}{res}     97.37       2.63 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  6.8096  {txt} Pr = {res}0.009
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 13.3550  {txt} Pr = {res}0.000
{txt}
{com}. tab rel_neverwar1 rel_alwaysjtdem1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |} Rel: Always jt dem in
rel_neverw {c |}         per 1
       ar1 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       181          0 {txt}{c |}{res}       181 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}     2,750         30 {txt}{c |}{res}     2,780 
           {txt}{c |}{res}     98.92       1.08 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     2,931         30 {txt}{c |}{res}     2,961 
           {txt}{c |}{res}     98.99       1.01 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  1.9732  {txt} Pr = {res}0.160
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  3.8045  {txt} Pr = {res}0.051
{txt}
{com}. tab rel_neverwarall rel_alwaysjtdemall if rel_everpolrelall==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}  Rel: Always jt dem
     arall {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       105          0 {txt}{c |}{res}       105 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}     1,081         63 {txt}{c |}{res}     1,144 
           {txt}{c |}{res}     94.49       5.51 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     1,186         63 {txt}{c |}{res}     1,249 
           {txt}{c |}{res}     94.96       5.04 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  6.0895  {txt} Pr = {res}0.014
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 11.3667  {txt} Pr = {res}0.001
{txt}
{com}. tab rel_neverwar1 rel_alwaysjtdem1 if rel_everpolrel1==1, r chi2 lrchi2  
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |} Rel: Always jt dem in
rel_neverw {c |}         per 1
       ar1 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       149          0 {txt}{c |}{res}       149 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       528         10 {txt}{c |}{res}       538 
           {txt}{c |}{res}     98.14       1.86 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       677         10 {txt}{c |}{res}       687 
           {txt}{c |}{res}     98.54       1.46 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.8104  {txt} Pr = {res}0.094
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  4.9303  {txt} Pr = {res}0.026
{txt}
{com}. tab rel_neverwarall rel_alwaysjtdemall if rel_anymidsall==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverw {c |}  Rel: Always jt dem
     arall {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       249          0 {txt}{c |}{res}       249 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       697          6 {txt}{c |}{res}       703 
           {txt}{c |}{res}     99.15       0.85 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       946          6 {txt}{c |}{res}       952 
           {txt}{c |}{res}     99.37       0.63 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.1387  {txt} Pr = {res}0.144
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  3.6520  {txt} Pr = {res}0.056
{txt}
{com}. tab rel_neverwar1 rel_alwaysjtdem1 if rel_anymidsall==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |} Rel: Always jt dem in
rel_neverw {c |}         per 1
       ar1 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       181          0 {txt}{c |}{res}       181 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       373          1 {txt}{c |}{res}       374 
           {txt}{c |}{res}     99.73       0.27 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       554          1 {txt}{c |}{res}       555 
           {txt}{c |}{res}     99.82       0.18 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.4848  {txt} Pr = {res}0.486
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  0.7903  {txt} Pr = {res}0.374
{txt}
{com}. 
. //Table A11.
. tab  rel_alwaysjtdemall rel_anyterrmidsall, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}  rel_anyterrmidsall
       dem {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}    18,941        389 {txt}{c |}{res}    19,330 
           {txt}{c |}{res}     97.99       2.01 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       520          2 {txt}{c |}{res}       522 
           {txt}{c |}{res}     99.62       0.38 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    19,461        391 {txt}{c |}{res}    19,852 
           {txt}{c |}{res}     98.03       1.97 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  6.9880  {txt} Pr = {res}0.008
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 10.3294  {txt} Pr = {res}0.001
{txt}
{com}. tab  rel_alwaysjtdem1 rel_anyterrmids1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyterrmids1
         1 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}     2,754        177 {txt}{c |}{res}     2,931 
           {txt}{c |}{res}     93.96       6.04 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}        30          0 {txt}{c |}{res}        30 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     2,784        177 {txt}{c |}{res}     2,961 
           {txt}{c |}{res}     94.02       5.98 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  1.9268  {txt} Pr = {res}0.165
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  3.7178  {txt} Pr = {res}0.054
{txt}
{com}. tab  rel_alwaysjtdemall rel_anyterrmidsall if rel_everpolrelall==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}  rel_anyterrmidsall
       dem {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       991        195 {txt}{c |}{res}     1,186 
           {txt}{c |}{res}     83.56      16.44 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}        61          2 {txt}{c |}{res}        63 
           {txt}{c |}{res}     96.83       3.17 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     1,052        197 {txt}{c |}{res}     1,249 
           {txt}{c |}{res}     84.23      15.77 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  7.9262  {txt} Pr = {res}0.005
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 10.9884  {txt} Pr = {res}0.001
{txt}
{com}. tab  rel_alwaysjtdem1 rel_anyterrmids1 if rel_everpolrel1==1, r chi2 lrchi2  
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyterrmids1
         1 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       509        168 {txt}{c |}{res}       677 
           {txt}{c |}{res}     75.18      24.82 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}        10          0 {txt}{c |}{res}        10 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       519        168 {txt}{c |}{res}       687 
           {txt}{c |}{res}     75.55      24.45 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  3.2848  {txt} Pr = {res}0.070
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  5.6563  {txt} Pr = {res}0.017
{txt}
{com}. tab  rel_alwaysjtdemall rel_anyterrmidsall if rel_anymidsall==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}  rel_anyterrmidsall
       dem {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       557        389 {txt}{c |}{res}       946 
           {txt}{c |}{res}     58.88      41.12 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}         4          2 {txt}{c |}{res}         6 
           {txt}{c |}{res}     66.67      33.33 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       561        391 {txt}{c |}{res}       952 
           {txt}{c |}{res}     58.93      41.07 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.1494  {txt} Pr = {res}0.699
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  0.1530  {txt} Pr = {res}0.696
{txt}
{com}. tab  rel_alwaysjtdem1 rel_anyterrmids1 if rel_anymidsall==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

      Rel: {c |}
 Always jt {c |}
dem in per {c |}   rel_anyterrmids1
         1 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       377        177 {txt}{c |}{res}       554 
           {txt}{c |}{res}     68.05      31.95 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}         1          0 {txt}{c |}{res}         1 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       378        177 {txt}{c |}{res}       555 
           {txt}{c |}{res}     68.11      31.89 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.4691  {txt} Pr = {res}0.493
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  0.7690  {txt} Pr = {res}0.381
{txt}
{com}. 
. //Appendix B. 
. //Table B1.
. firthlogit rel_neverwar2 rel_anyterrmids2 rel_everjtdem2 rel_meancinc2 rel_meantrade2
{res}
{txt}initial:{col 16}penalized log likelihood = {res: -327.9959}
rescale:{col 16}penalized log likelihood = {res: -327.9959}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res: -327.9959}  (not concave)
Iteration 1:{space 3}penalized log likelihood = {res:-202.87205}  
Iteration 2:{space 3}penalized log likelihood = {res:-175.87739}  
Iteration 3:{space 3}penalized log likelihood = {res:-171.21177}  (not concave)
Iteration 4:{space 3}penalized log likelihood = {res:-169.87506}  
Iteration 5:{space 3}penalized log likelihood = {res:-167.39822}  
Iteration 6:{space 3}penalized log likelihood = {res:-167.38469}  
Iteration 7:{space 3}penalized log likelihood = {res:-167.38468}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}     9,822
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}    306.72
{txt}Penalized log likelihood = {res}-167.38468{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar2{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids2 {c |}{col 18}{res}{space 2}-5.709602{col 30}{space 2} .3335715{col 41}{space 1}  -17.12{col 50}{space 3}0.000{col 58}{space 4} -6.36339{col 71}{space 3}-5.055814
{txt}{space 2}rel_everjtdem2 {c |}{col 18}{res}{space 2} 1.094618{col 30}{space 2} .5322359{col 41}{space 1}    2.06{col 50}{space 3}0.040{col 58}{space 4} .0514553{col 71}{space 3} 2.137782
{txt}{space 3}rel_meancinc2 {c |}{col 18}{res}{space 2}-.3749122{col 30}{space 2} .5806759{col 41}{space 1}   -0.65{col 50}{space 3}0.519{col 58}{space 4}-1.513016{col 71}{space 3} .7631916
{txt}{space 2}rel_meantrade2 {c |}{col 18}{res}{space 2} -.000139{col 30}{space 2} .0000404{col 41}{space 1}   -3.44{col 50}{space 3}0.001{col 58}{space 4}-.0002182{col 71}{space 3}-.0000598
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}  6.53603{col 30}{space 2}  .309352{col 41}{space 1}   21.13{col 50}{space 3}0.000{col 58}{space 4} 5.929712{col 71}{space 3} 7.142349
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar3 rel_anyterrmids3 rel_everjtdem3 rel_meancinc3 rel_meantrade3
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-120.85105}
rescale:{col 16}penalized log likelihood = {res:-120.85105}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-120.85105}  (not concave)
Iteration 1:{space 3}penalized log likelihood = {res:-67.596006}  
Iteration 2:{space 3}penalized log likelihood = {res:-58.011482}  
Iteration 3:{space 3}penalized log likelihood = {res: -57.38155}  
Iteration 4:{space 3}penalized log likelihood = {res:-57.361873}  
Iteration 5:{space 3}penalized log likelihood = {res:-57.361843}  
Iteration 6:{space 3}penalized log likelihood = {res:-57.361843}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}    14,431
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}    112.56
{txt}Penalized log likelihood = {res}-57.361843{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar3{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids3 {c |}{col 18}{res}{space 2}-6.297621{col 30}{space 2} .6137357{col 41}{space 1}  -10.26{col 50}{space 3}0.000{col 58}{space 4}-7.500521{col 71}{space 3}-5.094721
{txt}{space 2}rel_everjtdem3 {c |}{col 18}{res}{space 2} .8245617{col 30}{space 2} .8780609{col 41}{space 1}    0.94{col 50}{space 3}0.348{col 58}{space 4} -.896406{col 71}{space 3} 2.545529
{txt}{space 3}rel_meancinc3 {c |}{col 18}{res}{space 2} -.123325{col 30}{space 2} .9461024{col 41}{space 1}   -0.13{col 50}{space 3}0.896{col 58}{space 4}-1.977652{col 71}{space 3} 1.731002
{txt}{space 2}rel_meantrade3 {c |}{col 18}{res}{space 2} 4.10e-06{col 30}{space 2}  .000026{col 41}{space 1}    0.16{col 50}{space 3}0.875{col 58}{space 4}-.0000469{col 71}{space 3} .0000551
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 8.104486{col 30}{space 2} .5862001{col 41}{space 1}   13.83{col 50}{space 3}0.000{col 58}{space 4} 6.955555{col 71}{space 3} 9.253417
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar2 rel_anyterrmids2 rel_everjtdem2 rel_meancinc2 rel_meantrade2 if rel_everpolrel2==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res: -144.5312}
rescale:{col 16}penalized log likelihood = {res: -144.5312}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res: -144.5312}  
Iteration 1:{space 3}penalized log likelihood = {res:-114.60552}  
Iteration 2:{space 3}penalized log likelihood = {res:-90.065482}  
Iteration 3:{space 3}penalized log likelihood = {res:-89.563963}  
Iteration 4:{space 3}penalized log likelihood = {res:-89.561931}  
Iteration 5:{space 3}penalized log likelihood = {res:-89.561931}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       978
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}     82.22
{txt}Penalized log likelihood = {res}-89.561931{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar2{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids2 {c |}{col 18}{res}{space 2}-3.939158{col 30}{space 2} .4513907{col 41}{space 1}   -8.73{col 50}{space 3}0.000{col 58}{space 4}-4.823868{col 71}{space 3}-3.054449
{txt}{space 2}rel_everjtdem2 {c |}{col 18}{res}{space 2} .6449115{col 30}{space 2} .5489543{col 41}{space 1}    1.17{col 50}{space 3}0.240{col 58}{space 4}-.4310191{col 71}{space 3} 1.720842
{txt}{space 3}rel_meancinc2 {c |}{col 18}{res}{space 2} .7554188{col 30}{space 2}  .817631{col 41}{space 1}    0.92{col 50}{space 3}0.356{col 58}{space 4}-.8471085{col 71}{space 3} 2.357946
{txt}{space 2}rel_meantrade2 {c |}{col 18}{res}{space 2}-.0000862{col 30}{space 2} .0000409{col 41}{space 1}   -2.11{col 50}{space 3}0.035{col 58}{space 4}-.0001664{col 71}{space 3}-6.03e-06
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 4.560665{col 30}{space 2} .3803705{col 41}{space 1}   11.99{col 50}{space 3}0.000{col 58}{space 4} 3.815153{col 71}{space 3} 5.306177
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar3 rel_anyterrmids3 rel_everjtdem3 rel_meancinc3 rel_meantrade3 if rel_everpolrel3==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-49.001947}
rescale:{col 16}penalized log likelihood = {res:-49.001947}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-49.001947}  (not concave)
Iteration 1:{space 3}penalized log likelihood = {res:-37.110889}  
Iteration 2:{space 3}penalized log likelihood = {res:-32.401845}  
Iteration 3:{space 3}penalized log likelihood = {res:-30.931408}  
Iteration 4:{space 3}penalized log likelihood = {res:-30.924373}  
Iteration 5:{space 3}penalized log likelihood = {res:-30.924361}  
Iteration 6:{space 3}penalized log likelihood = {res:-30.924361}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}     1,518
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}     37.58
{txt}Penalized log likelihood = {res}-30.924361{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar3{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids3 {c |}{col 18}{res}{space 2}-3.567867{col 30}{space 2} .7130408{col 41}{space 1}   -5.00{col 50}{space 3}0.000{col 58}{space 4}-4.965401{col 71}{space 3}-2.170332
{txt}{space 2}rel_everjtdem3 {c |}{col 18}{res}{space 2} .8637764{col 30}{space 2} .8577529{col 41}{space 1}    1.01{col 50}{space 3}0.314{col 58}{space 4}-.8173883{col 71}{space 3} 2.544941
{txt}{space 3}rel_meancinc3 {c |}{col 18}{res}{space 2}-.5029468{col 30}{space 2} 1.337831{col 41}{space 1}   -0.38{col 50}{space 3}0.707{col 58}{space 4}-3.125048{col 71}{space 3} 2.119155
{txt}{space 2}rel_meantrade3 {c |}{col 18}{res}{space 2}-.0000137{col 30}{space 2} .0000138{col 41}{space 1}   -0.99{col 50}{space 3}0.320{col 58}{space 4}-.0000408{col 71}{space 3} .0000133
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 5.675129{col 30}{space 2} .5626874{col 41}{space 1}   10.09{col 50}{space 3}0.000{col 58}{space 4} 4.572282{col 71}{space 3} 6.777976
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar2 rel_anyterrmids2 rel_everjtdem2 rel_meancinc2 rel_meantrade2 if rel_anymidsall==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-181.00553}
rescale:{col 16}penalized log likelihood = {res:-181.00553}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-181.00553}  
Iteration 1:{space 3}penalized log likelihood = {res:-179.25129}  
Iteration 2:{space 3}penalized log likelihood = {res:-131.54907}  
Iteration 3:{space 3}penalized log likelihood = {res:-130.50399}  
Iteration 4:{space 3}penalized log likelihood = {res: -130.4964}  
Iteration 5:{space 3}penalized log likelihood = {res: -130.4964}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       734
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}     80.63
{txt}Penalized log likelihood = {res} -130.4964{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar2{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids2 {c |}{col 18}{res}{space 2} -2.88719{col 30}{space 2} .3340473{col 41}{space 1}   -8.64{col 50}{space 3}0.000{col 58}{space 4}-3.541911{col 71}{space 3}-2.232469
{txt}{space 2}rel_everjtdem2 {c |}{col 18}{res}{space 2} 1.187046{col 30}{space 2} .5226883{col 41}{space 1}    2.27{col 50}{space 3}0.023{col 58}{space 4} .1625956{col 71}{space 3} 2.211496
{txt}{space 3}rel_meancinc2 {c |}{col 18}{res}{space 2}-.1943531{col 30}{space 2} .5806696{col 41}{space 1}   -0.33{col 50}{space 3}0.738{col 58}{space 4}-1.332445{col 71}{space 3} .9437383
{txt}{space 2}rel_meantrade2 {c |}{col 18}{res}{space 2} -.000068{col 30}{space 2} .0000453{col 41}{space 1}   -1.50{col 50}{space 3}0.134{col 58}{space 4}-.0001569{col 71}{space 3} .0000208
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 3.625451{col 30}{space 2} .3234491{col 41}{space 1}   11.21{col 50}{space 3}0.000{col 58}{space 4} 2.991502{col 71}{space 3}   4.2594
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverwar3 rel_anyterrmids3 rel_everjtdem3 rel_meancinc3 rel_meantrade3 if rel_anymidsall==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-69.156109}
rescale:{col 16}penalized log likelihood = {res:-69.156109}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-69.156109}  
Iteration 1:{space 3}penalized log likelihood = {res:-60.820467}  
Iteration 2:{space 3}penalized log likelihood = {res: -49.06404}  (not concave)
Iteration 3:{space 3}penalized log likelihood = {res:-48.880227}  
Iteration 4:{space 3}penalized log likelihood = {res:-48.212614}  
Iteration 5:{space 3}penalized log likelihood = {res:-47.338012}  
Iteration 6:{space 3}penalized log likelihood = {res:-47.280424}  
Iteration 7:{space 3}penalized log likelihood = {res:-47.280086}  
Iteration 8:{space 3}penalized log likelihood = {res:-47.280085}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       819
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}     31.22
{txt}Penalized log likelihood = {res}-47.280085{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   rel_neverwar3{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids3 {c |}{col 18}{res}{space 2}-2.918667{col 30}{space 2} .6157588{col 41}{space 1}   -4.74{col 50}{space 3}0.000{col 58}{space 4}-4.125532{col 71}{space 3}-1.711802
{txt}{space 2}rel_everjtdem3 {c |}{col 18}{res}{space 2} 1.226117{col 30}{space 2} .8651561{col 41}{space 1}    1.42{col 50}{space 3}0.156{col 58}{space 4}-.4695583{col 71}{space 3} 2.921791
{txt}{space 3}rel_meancinc3 {c |}{col 18}{res}{space 2} .2473499{col 30}{space 2} .9571171{col 41}{space 1}    0.26{col 50}{space 3}0.796{col 58}{space 4}-1.628565{col 71}{space 3} 2.123265
{txt}{space 2}rel_meantrade3 {c |}{col 18}{res}{space 2}-.0000126{col 30}{space 2} .0000108{col 41}{space 1}   -1.17{col 50}{space 3}0.242{col 58}{space 4}-.0000338{col 71}{space 3} 8.51e-06
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 4.652929{col 30}{space 2} .6138167{col 41}{space 1}    7.58{col 50}{space 3}0.000{col 58}{space 4} 3.449871{col 71}{space 3} 5.855988
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. //Table B2.
. tab rel_neverwar2 rel_everjtdem2, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}  Rel: Ever jt dem in
rel_neverw {c |}         per 2
       ar2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        56          5 {txt}{c |}{res}        61 
           {txt}{c |}{res}     91.80       8.20 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}    11,412      1,677 {txt}{c |}{res}    13,089 
           {txt}{c |}{res}     87.19      12.81 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    11,468      1,682 {txt}{c |}{res}    13,150 
           {txt}{c |}{res}     87.21      12.79 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  1.1596  {txt} Pr = {res}0.282
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  1.3054  {txt} Pr = {res}0.253
{txt}
{com}. tab rel_neverwar3 rel_everjtdem3, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}  Rel: Ever jt dem in
rel_neverw {c |}         per 3
       ar3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        17          1 {txt}{c |}{res}        18 
           {txt}{c |}{res}     94.44       5.56 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}    14,820      4,133 {txt}{c |}{res}    18,953 
           {txt}{c |}{res}     78.19      21.81 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    14,837      4,134 {txt}{c |}{res}    18,971 
           {txt}{c |}{res}     78.21      21.79 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.7867  {txt} Pr = {res}0.095
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  3.6826  {txt} Pr = {res}0.055
{txt}
{com}. tab rel_neverwar2 rel_everjtdem2 if rel_everpolrel2==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}  Rel: Ever jt dem in
rel_neverw {c |}         per 2
       ar2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        36          5 {txt}{c |}{res}        41 
           {txt}{c |}{res}     87.80      12.20 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       766        215 {txt}{c |}{res}       981 
           {txt}{c |}{res}     78.08      21.92 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       802        220 {txt}{c |}{res}     1,022 
           {txt}{c |}{res}     78.47      21.53 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.2017  {txt} Pr = {res}0.138
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  2.4951  {txt} Pr = {res}0.114
{txt}
{com}. tab rel_neverwar3 rel_everjtdem3 if rel_everpolrel3==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}  Rel: Ever jt dem in
rel_neverw {c |}         per 3
       ar3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        10          1 {txt}{c |}{res}        11 
           {txt}{c |}{res}     90.91       9.09 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       986        618 {txt}{c |}{res}     1,604 
           {txt}{c |}{res}     61.47      38.53 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       996        619 {txt}{c |}{res}     1,615 
           {txt}{c |}{res}     61.67      38.33 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  4.0052  {txt} Pr = {res}0.045
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  4.9101  {txt} Pr = {res}0.027
{txt}
{com}. tab rel_neverwar2 rel_everjtdem2 if rel_anymidsall==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}  Rel: Ever jt dem in
rel_neverw {c |}         per 2
       ar2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        56          5 {txt}{c |}{res}        61 
           {txt}{c |}{res}     91.80       8.20 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       537        162 {txt}{c |}{res}       699 
           {txt}{c |}{res}     76.82      23.18 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       593        167 {txt}{c |}{res}       760 
           {txt}{c |}{res}     78.03      21.97 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  7.3423  {txt} Pr = {res}0.007
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  8.9321  {txt} Pr = {res}0.003
{txt}
{com}. tab rel_neverwar3 rel_everjtdem3 if rel_anymidsall==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}  Rel: Ever jt dem in
rel_neverw {c |}         per 3
       ar3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        17          1 {txt}{c |}{res}        18 
           {txt}{c |}{res}     94.44       5.56 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       475        381 {txt}{c |}{res}       856 
           {txt}{c |}{res}     55.49      44.51 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       492        382 {txt}{c |}{res}       874 
           {txt}{c |}{res}     56.29      43.71 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 10.8725  {txt} Pr = {res}0.001
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 13.6913  {txt} Pr = {res}0.000
{txt}
{com}. 
. //Table B3.
. tab  rel_everjtdem2 rel_anyterrmids2, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

 Rel: Ever {c |}
 jt dem in {c |}   rel_anyterrmids2
     per 2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}    11,345        123 {txt}{c |}{res}    11,468 
           {txt}{c |}{res}     98.93       1.07 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}     1,657         25 {txt}{c |}{res}     1,682 
           {txt}{c |}{res}     98.51       1.49 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    13,002        148 {txt}{c |}{res}    13,150 
           {txt}{c |}{res}     98.87       1.13 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.2568  {txt} Pr = {res}0.133
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  2.0815  {txt} Pr = {res}0.149
{txt}
{com}. tab  rel_everjtdem3 rel_anyterrmids3, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

 Rel: Ever {c |}
 jt dem in {c |}   rel_anyterrmids3
     per 3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}    14,732        105 {txt}{c |}{res}    14,837 
           {txt}{c |}{res}     99.29       0.71 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}     4,117         17 {txt}{c |}{res}     4,134 
           {txt}{c |}{res}     99.59       0.41 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    18,849        122 {txt}{c |}{res}    18,971 
           {txt}{c |}{res}     99.36       0.64 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  4.4474  {txt} Pr = {res}0.035
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  4.9284  {txt} Pr = {res}0.026
{txt}
{com}. tab  rel_everjtdem2 rel_anyterrmids2 if rel_everpolrel2==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

 Rel: Ever {c |}
 jt dem in {c |}   rel_anyterrmids2
     per 2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       710         92 {txt}{c |}{res}       802 
           {txt}{c |}{res}     88.53      11.47 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       201         19 {txt}{c |}{res}       220 
           {txt}{c |}{res}     91.36       8.64 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       911        111 {txt}{c |}{res}     1,022 
           {txt}{c |}{res}     89.14      10.86 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  1.4332  {txt} Pr = {res}0.231
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  1.5037  {txt} Pr = {res}0.220
{txt}
{com}. tab  rel_everjtdem3 rel_anyterrmids3 if rel_everpolrel3==1, r chi2 lrchi2  
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

 Rel: Ever {c |}
 jt dem in {c |}   rel_anyterrmids3
     per 3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       937         59 {txt}{c |}{res}       996 
           {txt}{c |}{res}     94.08       5.92 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       604         15 {txt}{c |}{res}       619 
           {txt}{c |}{res}     97.58       2.42 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     1,541         74 {txt}{c |}{res}     1,615 
           {txt}{c |}{res}     95.42       4.58 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 10.6987  {txt} Pr = {res}0.001
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 11.6822  {txt} Pr = {res}0.001
{txt}
{com}. tab  rel_everjtdem2 rel_anyterrmids2 if rel_anymidsall==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

 Rel: Ever {c |}
 jt dem in {c |}   rel_anyterrmids2
     per 2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       470        123 {txt}{c |}{res}       593 
           {txt}{c |}{res}     79.26      20.74 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       142         25 {txt}{c |}{res}       167 
           {txt}{c |}{res}     85.03      14.97 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       612        148 {txt}{c |}{res}       760 
           {txt}{c |}{res}     80.53      19.47 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.7683  {txt} Pr = {res}0.096
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  2.9031  {txt} Pr = {res}0.088
{txt}
{com}. tab  rel_everjtdem3 rel_anyterrmids3 if rel_anymidsall==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

 Rel: Ever {c |}
 jt dem in {c |}   rel_anyterrmids3
     per 3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       387        105 {txt}{c |}{res}       492 
           {txt}{c |}{res}     78.66      21.34 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       365         17 {txt}{c |}{res}       382 
           {txt}{c |}{res}     95.55       4.45 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       752        122 {txt}{c |}{res}       874 
           {txt}{c |}{res}     86.04      13.96 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 51.0838  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 57.3702  {txt} Pr = {res}0.000
{txt}
{com}. 
. //Table B4.
. firthlogit rel_neverfatalmids2 rel_anyterrmids2 rel_alwaysjtdem2 rel_meancinc2 rel_meantrade2
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-872.13593}
rescale:{col 16}penalized log likelihood = {res:-872.13593}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-872.13593}  (not concave)
Iteration 1:{space 3}penalized log likelihood = {res:-840.50371}  
Iteration 2:{space 3}penalized log likelihood = {res:-756.30828}  
Iteration 3:{space 3}penalized log likelihood = {res:-653.19482}  
Iteration 4:{space 3}penalized log likelihood = {res:-597.96373}  
Iteration 5:{space 3}penalized log likelihood = {res:-583.63492}  
Iteration 6:{space 3}penalized log likelihood = {res:-580.80094}  
Iteration 7:{space 3}penalized log likelihood = {res:-580.79785}  
Iteration 8:{space 3}penalized log likelihood = {res:-580.79785}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}     9,822
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}    644.23
{txt}Penalized log likelihood = {res}-580.79785{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}rel_neverfatal~2{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids2 {c |}{col 18}{res}{space 2}-5.174065{col 30}{space 2} .2074055{col 41}{space 1}  -24.95{col 50}{space 3}0.000{col 58}{space 4}-5.580573{col 71}{space 3}-4.767558
{txt}rel_alwaysjtdem2 {c |}{col 18}{res}{space 2} 1.302232{col 30}{space 2}  .906534{col 41}{space 1}    1.44{col 50}{space 3}0.151{col 58}{space 4}-.4745415{col 71}{space 3} 3.079006
{txt}{space 3}rel_meancinc2 {c |}{col 18}{res}{space 2}-.1417722{col 30}{space 2} .3548302{col 41}{space 1}   -0.40{col 50}{space 3}0.689{col 58}{space 4}-.8372266{col 71}{space 3} .5536821
{txt}{space 2}rel_meantrade2 {c |}{col 18}{res}{space 2} -.000098{col 30}{space 2} .0000458{col 41}{space 1}   -2.14{col 50}{space 3}0.032{col 58}{space 4}-.0001878{col 71}{space 3}-8.28e-06
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 4.683388{col 30}{space 2} .1358938{col 41}{space 1}   34.46{col 50}{space 3}0.000{col 58}{space 4} 4.417041{col 71}{space 3} 4.949735
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverfatalmids3 rel_anyterrmids3 rel_alwaysjtdem3 rel_meancinc3 rel_meantrade3
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-616.36002}
rescale:{col 16}penalized log likelihood = {res:-616.36002}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-616.36002}  (not concave)
Iteration 1:{space 3}penalized log likelihood = {res: -438.2223}  
Iteration 2:{space 3}penalized log likelihood = {res:-415.05017}  
Iteration 3:{space 3}penalized log likelihood = {res:  -399.322}  
Iteration 4:{space 3}penalized log likelihood = {res:-384.18078}  
Iteration 5:{space 3}penalized log likelihood = {res:-383.39211}  
Iteration 6:{space 3}penalized log likelihood = {res:-383.15719}  
Iteration 7:{space 3}penalized log likelihood = {res:-383.14607}  
Iteration 8:{space 3}penalized log likelihood = {res:-383.14607}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}    14,431
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}    573.54
{txt}Penalized log likelihood = {res}-383.14607{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}rel_neverfatal~3{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids3 {c |}{col 18}{res}{space 2}-5.652484{col 30}{space 2} .2410265{col 41}{space 1}  -23.45{col 50}{space 3}0.000{col 58}{space 4}-6.124888{col 71}{space 3}-5.180081
{txt}rel_alwaysjtdem3 {c |}{col 18}{res}{space 2}  1.63709{col 30}{space 2} .6946202{col 41}{space 1}    2.36{col 50}{space 3}0.018{col 58}{space 4} .2756599{col 71}{space 3} 2.998521
{txt}{space 3}rel_meancinc3 {c |}{col 18}{res}{space 2}-.9447612{col 30}{space 2} .4050323{col 41}{space 1}   -2.33{col 50}{space 3}0.020{col 58}{space 4} -1.73861{col 71}{space 3}-.1509126
{txt}{space 2}rel_meantrade3 {c |}{col 18}{res}{space 2} .0000135{col 30}{space 2} .0000159{col 41}{space 1}    0.85{col 50}{space 3}0.396{col 58}{space 4}-.0000177{col 71}{space 3} .0000447
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 5.816429{col 30}{space 2} .1886893{col 41}{space 1}   30.83{col 50}{space 3}0.000{col 58}{space 4} 5.446604{col 71}{space 3} 6.186253
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverfatalmids2 rel_anyterrmids2 rel_alwaysjtdem2 rel_meancinc2 rel_meantrade2 if rel_everpolrel2==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-362.47198}
rescale:{col 16}penalized log likelihood = {res:-362.47198}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-362.47198}  
Iteration 1:{space 3}penalized log likelihood = {res:-297.68137}  
Iteration 2:{space 3}penalized log likelihood = {res:-265.11449}  (not concave)
Iteration 3:{space 3}penalized log likelihood = {res:-261.45978}  
Iteration 4:{space 3}penalized log likelihood = {res:-256.60914}  
Iteration 5:{space 3}penalized log likelihood = {res: -255.5077}  
Iteration 6:{space 3}penalized log likelihood = {res:-255.20586}  
Iteration 7:{space 3}penalized log likelihood = {res:-255.20519}  
Iteration 8:{space 3}penalized log likelihood = {res:-255.20519}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       978
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}    180.01
{txt}Penalized log likelihood = {res}-255.20519{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}rel_neverfatal~2{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids2 {c |}{col 18}{res}{space 2}-3.139891{col 30}{space 2} .2544078{col 41}{space 1}  -12.34{col 50}{space 3}0.000{col 58}{space 4}-3.638521{col 71}{space 3}-2.641261
{txt}rel_alwaysjtdem2 {c |}{col 18}{res}{space 2}  .940864{col 30}{space 2} .8988879{col 41}{space 1}    1.05{col 50}{space 3}0.295{col 58}{space 4} -.820924{col 71}{space 3} 2.702652
{txt}{space 3}rel_meancinc2 {c |}{col 18}{res}{space 2}-1.313694{col 30}{space 2} .4843512{col 41}{space 1}   -2.71{col 50}{space 3}0.007{col 58}{space 4}-2.263005{col 71}{space 3}-.3643834
{txt}{space 2}rel_meantrade2 {c |}{col 18}{res}{space 2} .0003167{col 30}{space 2} .0002111{col 41}{space 1}    1.50{col 50}{space 3}0.134{col 58}{space 4}-.0000971{col 71}{space 3} .0007304
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 2.695653{col 30}{space 2} .1595758{col 41}{space 1}   16.89{col 50}{space 3}0.000{col 58}{space 4} 2.382891{col 71}{space 3} 3.008416
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit rel_neverfatalmids3 rel_anyterrmids3 rel_alwaysjtdem3 rel_meancinc3 rel_meantrade3 if rel_everpolrel3==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-246.64884}
rescale:{col 16}penalized log likelihood = {res:-246.64884}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-246.64884}  
Iteration 1:{space 3}penalized log likelihood = {res:-221.51996}  (not concave)
Iteration 2:{space 3}penalized log likelihood = {res: -206.2528}  
Iteration 3:{space 3}penalized log likelihood = {res:-161.01085}  
Iteration 4:{space 3}penalized log likelihood = {res:-154.50811}  
Iteration 5:{space 3}penalized log likelihood = {res:-154.12205}  
Iteration 6:{space 3}penalized log likelihood = {res:-154.11946}  
Iteration 7:{space 3}penalized log likelihood = {res:-154.11946}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}     1,518
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}    162.31
{txt}Penalized log likelihood = {res}-154.11946{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}rel_neverfatal~3{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
rel_anyterrmids3 {c |}{col 18}{res}{space 2}-3.818049{col 30}{space 2}  .325702{col 41}{space 1}  -11.72{col 50}{space 3}0.000{col 58}{space 4}-4.456414{col 71}{space 3}-3.179685
{txt}rel_alwaysjtdem3 {c |}{col 18}{res}{space 2} 1.912774{col 30}{space 2}  .755423{col 41}{space 1}    2.53{col 50}{space 3}0.011{col 58}{space 4} .4321724{col 71}{space 3} 3.393376
{txt}{space 3}rel_meancinc3 {c |}{col 18}{res}{space 2}-2.227126{col 30}{space 2} .5771862{col 41}{space 1}   -3.86{col 50}{space 3}0.000{col 58}{space 4} -3.35839{col 71}{space 3}-1.095862
{txt}{space 2}rel_meantrade3 {c |}{col 18}{res}{space 2} .0000299{col 30}{space 2} .0000172{col 41}{space 1}    1.74{col 50}{space 3}0.081{col 58}{space 4}-3.72e-06{col 71}{space 3} .0000635
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} 4.031697{col 30}{space 2} .2265292{col 41}{space 1}   17.80{col 50}{space 3}0.000{col 58}{space 4} 3.587707{col 71}{space 3} 4.475686
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. //Table B5.
. tab rel_neverfatalmids2 rel_anyterrmids2, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverf {c |}   rel_anyterrmids2
 atalmids2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        96         94 {txt}{c |}{res}       190 
           {txt}{c |}{res}     50.53      49.47 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}    12,906         54 {txt}{c |}{res}    12,960 
           {txt}{c |}{res}     99.58       0.42 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    13,002        148 {txt}{c |}{res}    13,150 
           {txt}{c |}{res}     98.87       1.13 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 4.0e+03  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res}659.4110  {txt} Pr = {res}0.000
{txt}
{com}. tab rel_neverfatalmids3 rel_anyterrmids3, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverf {c |}   rel_anyterrmids3
 atalmids3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        54         64 {txt}{c |}{res}       118 
           {txt}{c |}{res}     45.76      54.24 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}    18,795         58 {txt}{c |}{res}    18,853 
           {txt}{c |}{res}     99.69       0.31 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    18,849        122 {txt}{c |}{res}    18,971 
           {txt}{c |}{res}     99.36       0.64 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 5.3e+03  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res}525.0975  {txt} Pr = {res}0.000
{txt}
{com}. tab rel_neverfatalmids2 rel_anyterrmids2 if rel_everpolrel2==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverf {c |}   rel_anyterrmids2
 atalmids2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        58         75 {txt}{c |}{res}       133 
           {txt}{c |}{res}     43.61      56.39 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       853         36 {txt}{c |}{res}       889 
           {txt}{c |}{res}     95.95       4.05 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       911        111 {txt}{c |}{res}     1,022 
           {txt}{c |}{res}     89.14      10.86 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}327.3822  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res}218.7254  {txt} Pr = {res}0.000
{txt}
{com}. tab rel_neverfatalmids3 rel_anyterrmids3 if rel_everpolrel3==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

rel_neverf {c |}   rel_anyterrmids3
 atalmids3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        29         41 {txt}{c |}{res}        70 
           {txt}{c |}{res}     41.43      58.57 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}     1,512         33 {txt}{c |}{res}     1,545 
           {txt}{c |}{res}     97.86       2.14 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     1,541         74 {txt}{c |}{res}     1,615 
           {txt}{c |}{res}     95.42       4.58 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}487.8312  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res}186.7267  {txt} Pr = {res}0.000
{txt}
{com}. 
. //Table B6.
. tab rel_neverfatalmids2 rel_alwaysjtdem2, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |} Rel: Always jt dem in
rel_neverf {c |}         per 2
 atalmids2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       189          1 {txt}{c |}{res}       190 
           {txt}{c |}{res}     99.47       0.53 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}    12,647        313 {txt}{c |}{res}    12,960 
           {txt}{c |}{res}     97.58       2.42 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    12,836        314 {txt}{c |}{res}    13,150 
           {txt}{c |}{res}     97.61       2.39 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.8662  {txt} Pr = {res}0.090
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  4.1576  {txt} Pr = {res}0.041
{txt}
{com}. tab rel_neverfatalmids3 rel_alwaysjtdem3, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |} Rel: Always jt dem in
rel_neverf {c |}         per 3
 atalmids3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       116          2 {txt}{c |}{res}       118 
           {txt}{c |}{res}     98.31       1.69 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}    17,250      1,603 {txt}{c |}{res}    18,853 
           {txt}{c |}{res}     91.50       8.50 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    17,366      1,605 {txt}{c |}{res}    18,971 
           {txt}{c |}{res}     91.54       8.46 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  7.0175  {txt} Pr = {res}0.008
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 10.1548  {txt} Pr = {res}0.001
{txt}
{com}. tab rel_neverfatalmids2 rel_alwaysjtdem2 if rel_everpolrel2==1, r chi2 lrchi2 
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |} Rel: Always jt dem in
rel_neverf {c |}         per 2
 atalmids2 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       132          1 {txt}{c |}{res}       133 
           {txt}{c |}{res}     99.25       0.75 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       833         56 {txt}{c |}{res}       889 
           {txt}{c |}{res}     93.70       6.30 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       965         57 {txt}{c |}{res}     1,022 
           {txt}{c |}{res}     94.42       5.58 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  6.7604  {txt} Pr = {res}0.009
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  9.9966  {txt} Pr = {res}0.002
{txt}
{com}. tab rel_neverfatalmids3 rel_alwaysjtdem3 if rel_everpolrel3==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |} Rel: Always jt dem in
rel_neverf {c |}         per 3
 atalmids3 {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}        68          2 {txt}{c |}{res}        70 
           {txt}{c |}{res}     97.14       2.86 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}     1,231        314 {txt}{c |}{res}     1,545 
           {txt}{c |}{res}     79.68      20.32 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     1,299        316 {txt}{c |}{res}     1,615 
           {txt}{c |}{res}     80.43      19.57 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 12.9812  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 18.5316  {txt} Pr = {res}0.000
{txt}
{com}. 
. //Table B7.
. use "mid escalation.dta", replace
{txt}
{com}. firthlogit peace territory jtdem if flagwar==0 & per2==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res: -294.0639}
rescale:{col 16}penalized log likelihood = {res: -294.0639}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res: -294.0639}  
Iteration 1:{space 3}penalized log likelihood = {res:-287.70146}  
Iteration 2:{space 3}penalized log likelihood = {res:-286.91487}  
Iteration 3:{space 3}penalized log likelihood = {res:-286.87766}  
Iteration 4:{space 3}penalized log likelihood = {res:-286.87752}  
Iteration 5:{space 3}penalized log likelihood = {res:-286.87752}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}     1,263
{txt}{col 49}Wald chi2({res}2{txt}){col 67}= {res}     12.26
{txt}Penalized log likelihood = {res}-286.87752{txt}{col 49}Prob > chi2{col 67}= {res}    0.0022

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}       peace{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}territory {c |}{col 14}{res}{space 2}-.7504206{col 26}{space 2} .2358637{col 37}{space 1}   -3.18{col 46}{space 3}0.001{col 54}{space 4}-1.212705{col 67}{space 3}-.2881362
{txt}{space 7}jtdem {c |}{col 14}{res}{space 2} 2.232774{col 26}{space 2} 1.426622{col 37}{space 1}    1.57{col 46}{space 3}0.118{col 54}{space 4}-.5633536{col 67}{space 3} 5.028903
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 2.879159{col 26}{space 2}  .149107{col 37}{space 1}   19.31{col 46}{space 3}0.000{col 54}{space 4} 2.586914{col 67}{space 3} 3.171403
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit peace territory jtdem cincratio totaltrade if flagwar==0 & per2==1 
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-198.11939}
rescale:{col 16}penalized log likelihood = {res:-198.11939}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-198.11939}  
Iteration 1:{space 3}penalized log likelihood = {res:-196.40916}  
Iteration 2:{space 3}penalized log likelihood = {res:-194.78513}  
Iteration 3:{space 3}penalized log likelihood = {res:-194.52271}  
Iteration 4:{space 3}penalized log likelihood = {res: -194.5167}  
Iteration 5:{space 3}penalized log likelihood = {res:-194.51668}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}     1,052
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}      6.35
{txt}Penalized log likelihood = {res}-194.51668{txt}{col 49}Prob > chi2{col 67}= {res}    0.1743

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}       peace{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}territory {c |}{col 14}{res}{space 2}-.5855049{col 26}{space 2} .2934954{col 37}{space 1}   -1.99{col 46}{space 3}0.046{col 54}{space 4}-1.160745{col 67}{space 3}-.0102646
{txt}{space 7}jtdem {c |}{col 14}{res}{space 2} 1.777999{col 26}{space 2} 1.422926{col 37}{space 1}    1.25{col 46}{space 3}0.211{col 54}{space 4}-1.010885{col 67}{space 3} 4.566884
{txt}{space 3}cincratio {c |}{col 14}{res}{space 2} .4308363{col 26}{space 2} .5637692{col 37}{space 1}    0.76{col 46}{space 3}0.445{col 54}{space 4} -.674131{col 67}{space 3} 1.535804
{txt}{space 2}totaltrade {c |}{col 14}{res}{space 2}-.0000199{col 26}{space 2} .0000135{col 37}{space 1}   -1.47{col 46}{space 3}0.141{col 54}{space 4}-.0000464{col 67}{space 3} 6.60e-06
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 2.886126{col 26}{space 2} .2290124{col 37}{space 1}   12.60{col 46}{space 3}0.000{col 54}{space 4}  2.43727{col 67}{space 3} 3.334982
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit peace territory jtdem if flagwar==0 & per3==1
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-251.33178}
rescale:{col 16}penalized log likelihood = {res:-251.33178}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-251.33178}  
Iteration 1:{space 3}penalized log likelihood = {res:-237.12727}  
Iteration 2:{space 3}penalized log likelihood = {res:-233.69804}  
Iteration 3:{space 3}penalized log likelihood = {res:-233.39865}  
Iteration 4:{space 3}penalized log likelihood = {res:-233.39371}  
Iteration 5:{space 3}penalized log likelihood = {res:-233.39369}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       693
{txt}{col 49}Wald chi2({res}2{txt}){col 67}= {res}     12.55
{txt}Penalized log likelihood = {res}-233.39369{txt}{col 49}Prob > chi2{col 67}= {res}    0.0019

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}       peace{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}territory {c |}{col 14}{res}{space 2}-.6239504{col 26}{space 2}  .260447{col 37}{space 1}   -2.40{col 46}{space 3}0.017{col 54}{space 4}-1.134417{col 67}{space 3}-.1134836
{txt}{space 7}jtdem {c |}{col 14}{res}{space 2} 3.830887{col 26}{space 2} 1.423146{col 37}{space 1}    2.69{col 46}{space 3}0.007{col 54}{space 4} 1.041573{col 67}{space 3} 6.620201
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 1.906055{col 26}{space 2} .1401222{col 37}{space 1}   13.60{col 46}{space 3}0.000{col 54}{space 4} 1.631421{col 67}{space 3}  2.18069
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. firthlogit peace territory jtdem cincratio totaltrade if flagwar==0 & per3==1 
{res}
{txt}initial:{col 16}penalized log likelihood = {res:-210.23436}
rescale:{col 16}penalized log likelihood = {res:-210.23436}
{res}{txt}Iteration 0:{space 3}penalized log likelihood = {res:-210.23436}  
Iteration 1:{space 3}penalized log likelihood = {res:-194.94067}  
Iteration 2:{space 3}penalized log likelihood = {res:-190.12803}  
Iteration 3:{space 3}penalized log likelihood = {res:-188.79834}  
Iteration 4:{space 3}penalized log likelihood = {res:-186.22547}  
Iteration 5:{space 3}penalized log likelihood = {res:-185.78339}  
Iteration 6:{space 3}penalized log likelihood = {res: -185.7767}  
Iteration 7:{space 3}penalized log likelihood = {res:-185.77668}  
Iteration 8:{space 3}penalized log likelihood = {res:-185.77668}  
{res}
{txt}{col 49}Number of obs{col 67}= {res}       600
{txt}{col 49}Wald chi2({res}4{txt}){col 67}= {res}     17.05
{txt}Penalized log likelihood = {res}-185.77668{txt}{col 49}Prob > chi2{col 67}= {res}    0.0019

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}       peace{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}territory {c |}{col 14}{res}{space 2}-.6151144{col 26}{space 2} .2755862{col 37}{space 1}   -2.23{col 46}{space 3}0.026{col 54}{space 4}-1.155253{col 67}{space 3}-.0749753
{txt}{space 7}jtdem {c |}{col 14}{res}{space 2} 3.523322{col 26}{space 2} 1.427576{col 37}{space 1}    2.47{col 46}{space 3}0.014{col 54}{space 4}  .725325{col 67}{space 3} 6.321318
{txt}{space 3}cincratio {c |}{col 14}{res}{space 2}-.7128596{col 26}{space 2} .4647356{col 37}{space 1}   -1.53{col 46}{space 3}0.125{col 54}{space 4}-1.623725{col 67}{space 3} .1980055
{txt}{space 2}totaltrade {c |}{col 14}{res}{space 2} .0003856{col 26}{space 2} .0001959{col 37}{space 1}    1.97{col 46}{space 3}0.049{col 54}{space 4} 1.51e-06{col 67}{space 3} .0007696
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 1.838694{col 26}{space 2} .2260102{col 37}{space 1}    8.14{col 46}{space 3}0.000{col 54}{space 4} 1.395722{col 67}{space 3} 2.281666
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. //Table B8. Take peace rows (war=0).
. tab war territory if per2==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}       territory
       war {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}     1,108        365 {txt}{c |}{res}     1,473 
           {txt}{c |}{res}     75.22      24.78 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}        62         35 {txt}{c |}{res}        97 
           {txt}{c |}{res}     63.92      36.08 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     1,170        400 {txt}{c |}{res}     1,570 
           {txt}{c |}{res}     74.52      25.48 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  6.1238  {txt} Pr = {res}0.013
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  5.7063  {txt} Pr = {res}0.017
{txt}
{com}. tab war territory if per3==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}       territory
       war {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       642        163 {txt}{c |}{res}       805 
           {txt}{c |}{res}     79.75      20.25 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}        76         28 {txt}{c |}{res}       104 
           {txt}{c |}{res}     73.08      26.92 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       718        191 {txt}{c |}{res}       909 
           {txt}{c |}{res}     78.99      21.01 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.4722  {txt} Pr = {res}0.116
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  2.3441  {txt} Pr = {res}0.126
{txt}
{com}. tab war jtdem if per2==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}         jtdem
       war {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}     1,126         58 {txt}{c |}{res}     1,184 
           {txt}{c |}{res}     95.10       4.90 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}        80          0 {txt}{c |}{res}        80 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     1,206         58 {txt}{c |}{res}     1,264 
           {txt}{c |}{res}     95.41       4.59 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  4.1074  {txt} Pr = {res}0.043
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  7.7701  {txt} Pr = {res}0.005
{txt}
{com}. tab war jtdem if per3==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}         jtdem
       war {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       488        122 {txt}{c |}{res}       610 
           {txt}{c |}{res}     80.00      20.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}        84          0 {txt}{c |}{res}        84 
           {txt}{c |}{res}    100.00       0.00 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       572        122 {txt}{c |}{res}       694 
           {txt}{c |}{res}     82.42      17.58 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 20.3832  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 34.8640  {txt} Pr = {res}0.000
{txt}
{com}. 
. //Table B9. Take peace rows (fatalmid=0).
. tab fatalmid territory if per2==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}       territory
  fatalmid {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       773        207 {txt}{c |}{res}       980 
           {txt}{c |}{res}     78.88      21.12 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       220        154 {txt}{c |}{res}       374 
           {txt}{c |}{res}     58.82      41.18 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       993        361 {txt}{c |}{res}     1,354 
           {txt}{c |}{res}     73.34      26.66 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 55.6753  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 52.9835  {txt} Pr = {res}0.000
{txt}
{com}. tab fatalmid territory if per3==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}       territory
  fatalmid {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       525        112 {txt}{c |}{res}       637 
           {txt}{c |}{res}     82.42      17.58 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       147         68 {txt}{c |}{res}       215 
           {txt}{c |}{res}     68.37      31.63 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       672        180 {txt}{c |}{res}       852 
           {txt}{c |}{res}     78.87      21.13 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 19.0305  {txt} Pr = {res}0.000
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 17.8890  {txt} Pr = {res}0.000
{txt}
{com}. tab fatalmid jtdem if per2==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}         jtdem
  fatalmid {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       729         42 {txt}{c |}{res}       771 
           {txt}{c |}{res}     94.55       5.45 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       295         14 {txt}{c |}{res}       309 
           {txt}{c |}{res}     95.47       4.53 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     1,024         56 {txt}{c |}{res}     1,080 
           {txt}{c |}{res}     94.81       5.19 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.3771  {txt} Pr = {res}0.539
{txt} likelihood-ratio chi2({res}1{txt}) = {res}  0.3868  {txt} Pr = {res}0.534
{txt}
{com}. tab fatalmid jtdem if per3==1, r chi2 lrchi2
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}         jtdem
  fatalmid {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       383        106 {txt}{c |}{res}       489 
           {txt}{c |}{res}     78.32      21.68 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}       138         15 {txt}{c |}{res}       153 
           {txt}{c |}{res}     90.20       9.80 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       521        121 {txt}{c |}{res}       642 
           {txt}{c |}{res}     81.15      18.85 {txt}{c |}{res}    100.00 

{txt}          Pearson chi2({res}1{txt}) = {res} 10.7407  {txt} Pr = {res}0.001
{txt} likelihood-ratio chi2({res}1{txt}) = {res} 12.0214  {txt} Pr = {res}0.001
{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/Owsiak/Dropbox/Vasquez-Owsiak CMPS 2017/II RR 2021/Final/peaceful dyads replication.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}12 Jul 2021, 11:41:55
{txt}{.-}
{smcl}
{txt}{sf}{ul off}